diff --git a/pyband/proto/confio/proofs_pb2.pyi b/pyband/proto/confio/proofs_pb2.pyi new file mode 100644 index 0000000..aa858e0 --- /dev/null +++ b/pyband/proto/confio/proofs_pb2.pyi @@ -0,0 +1,453 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class HashOp(_HashOp, metaclass=_HashOpEnumTypeWrapper): + pass +class _HashOp: + V = typing.NewType('V', builtins.int) +class _HashOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_HashOp.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # NO_HASH is the default if no data passed. Note this is an illegal argument some places. + NO_HASH = HashOp.V(0) + SHA256 = HashOp.V(1) + SHA512 = HashOp.V(2) + KECCAK = HashOp.V(3) + RIPEMD160 = HashOp.V(4) + # ripemd160(sha256(x)) + BITCOIN = HashOp.V(5) + +# NO_HASH is the default if no data passed. Note this is an illegal argument some places. +NO_HASH = HashOp.V(0) +SHA256 = HashOp.V(1) +SHA512 = HashOp.V(2) +KECCAK = HashOp.V(3) +RIPEMD160 = HashOp.V(4) +# ripemd160(sha256(x)) +BITCOIN = HashOp.V(5) +global___HashOp = HashOp + + +#* +#LengthOp defines how to process the key and value of the LeafOp +#to include length information. After encoding the length with the given +#algorithm, the length will be prepended to the key and value bytes. +#(Each one with it's own encoded length) +class LengthOp(_LengthOp, metaclass=_LengthOpEnumTypeWrapper): + pass +class _LengthOp: + V = typing.NewType('V', builtins.int) +class _LengthOpEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_LengthOp.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # NO_PREFIX don't include any length info + NO_PREFIX = LengthOp.V(0) + # VAR_PROTO uses protobuf (and go-amino) varint encoding of the length + VAR_PROTO = LengthOp.V(1) + # VAR_RLP uses rlp int encoding of the length + VAR_RLP = LengthOp.V(2) + # FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer + FIXED32_BIG = LengthOp.V(3) + # FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer + FIXED32_LITTLE = LengthOp.V(4) + # FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer + FIXED64_BIG = LengthOp.V(5) + # FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer + FIXED64_LITTLE = LengthOp.V(6) + # REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) + REQUIRE_32_BYTES = LengthOp.V(7) + # REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) + REQUIRE_64_BYTES = LengthOp.V(8) + +# NO_PREFIX don't include any length info +NO_PREFIX = LengthOp.V(0) +# VAR_PROTO uses protobuf (and go-amino) varint encoding of the length +VAR_PROTO = LengthOp.V(1) +# VAR_RLP uses rlp int encoding of the length +VAR_RLP = LengthOp.V(2) +# FIXED32_BIG uses big-endian encoding of the length as a 32 bit integer +FIXED32_BIG = LengthOp.V(3) +# FIXED32_LITTLE uses little-endian encoding of the length as a 32 bit integer +FIXED32_LITTLE = LengthOp.V(4) +# FIXED64_BIG uses big-endian encoding of the length as a 64 bit integer +FIXED64_BIG = LengthOp.V(5) +# FIXED64_LITTLE uses little-endian encoding of the length as a 64 bit integer +FIXED64_LITTLE = LengthOp.V(6) +# REQUIRE_32_BYTES is like NONE, but will fail if the input is not exactly 32 bytes (sha256 output) +REQUIRE_32_BYTES = LengthOp.V(7) +# REQUIRE_64_BYTES is like NONE, but will fail if the input is not exactly 64 bytes (sha512 output) +REQUIRE_64_BYTES = LengthOp.V(8) +global___LengthOp = LengthOp + + +#* +#ExistenceProof takes a key and a value and a set of steps to perform on it. +#The result of peforming all these steps will provide a "root hash", which can +#be compared to the value in a header. +# +#Since it is computationally infeasible to produce a hash collission for any of the used +#cryptographic hash functions, if someone can provide a series of operations to transform +#a given key and value into a root hash that matches some trusted root, these key and values +#must be in the referenced merkle tree. +# +#The only possible issue is maliablity in LeafOp, such as providing extra prefix data, +#which should be controlled by a spec. Eg. with lengthOp as NONE, +#prefix = FOO, key = BAR, value = CHOICE +#and +#prefix = F, key = OOBAR, value = CHOICE +#would produce the same value. +# +#With LengthOp this is tricker but not impossible. Which is why the "leafPrefixEqual" field +#in the ProofSpec is valuable to prevent this mutability. And why all trees should +#length-prefix the data before hashing it. +class ExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + LEAF_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def leaf(self) -> global___LeafOp: ... + @property + def path(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + leaf : typing.Optional[global___LeafOp] = ..., + path : typing.Optional[typing.Iterable[global___InnerOp]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... +global___ExistenceProof = ExistenceProof + +# +#NonExistenceProof takes a proof of two neighbors, one left of the desired key, +#one right of the desired key. If both proofs are valid AND they are neighbors, +#then there is no valid proof for the given key. +class NonExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + LEFT_FIELD_NUMBER: builtins.int + RIGHT_FIELD_NUMBER: builtins.int + # TODO: remove this as unnecessary??? we prove a range + key: builtins.bytes = ... + @property + def left(self) -> global___ExistenceProof: ... + @property + def right(self) -> global___ExistenceProof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + left : typing.Optional[global___ExistenceProof] = ..., + right : typing.Optional[global___ExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... +global___NonExistenceProof = NonExistenceProof + +# +#CommitmentProof is either an ExistenceProof or a NonExistenceProof, or a Batch of such messages +class CommitmentProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + BATCH_FIELD_NUMBER: builtins.int + COMPRESSED_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___ExistenceProof: ... + @property + def nonexist(self) -> global___NonExistenceProof: ... + @property + def batch(self) -> global___BatchProof: ... + @property + def compressed(self) -> global___CompressedBatchProof: ... + def __init__(self, + *, + exist : typing.Optional[global___ExistenceProof] = ..., + nonexist : typing.Optional[global___NonExistenceProof] = ..., + batch : typing.Optional[global___BatchProof] = ..., + compressed : typing.Optional[global___CompressedBatchProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"batch",b"batch",u"compressed",b"compressed",u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist","batch","compressed"]]: ... +global___CommitmentProof = CommitmentProof + +#* +#LeafOp represents the raw key-value data we wish to prove, and +#must be flexible to represent the internal transformation from +#the original key-value pairs into the basis hash, for many existing +#merkle trees. +# +#key and value are passed in. So that the signature of this operation is: +#leafOp(key, value) -> output +# +#To process this, first prehash the keys and values if needed (ANY means no hash in this case): +#hkey = prehashKey(key) +#hvalue = prehashValue(value) +# +#Then combine the bytes, and hash it +#output = hash(prefix || length(hkey) || hkey || length(hvalue) || hvalue) +class LeafOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + PREHASH_KEY_FIELD_NUMBER: builtins.int + PREHASH_VALUE_FIELD_NUMBER: builtins.int + LENGTH_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + hash: global___HashOp.V = ... + prehash_key: global___HashOp.V = ... + prehash_value: global___HashOp.V = ... + length: global___LengthOp.V = ... + # prefix is a fixed bytes that may optionally be included at the beginning to differentiate + # a leaf node from an inner node. + prefix: builtins.bytes = ... + def __init__(self, + *, + hash : global___HashOp.V = ..., + prehash_key : global___HashOp.V = ..., + prehash_value : global___HashOp.V = ..., + length : global___LengthOp.V = ..., + prefix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"length",b"length",u"prefix",b"prefix",u"prehash_key",b"prehash_key",u"prehash_value",b"prehash_value"]) -> None: ... +global___LeafOp = LeafOp + +#* +#InnerOp represents a merkle-proof step that is not a leaf. +#It represents concatenating two children and hashing them to provide the next result. +# +#The result of the previous step is passed in, so the signature of this op is: +#innerOp(child) -> output +# +#The result of applying InnerOp should be: +#output = op.hash(op.prefix || child || op.suffix) +# +#where the || operator is concatenation of binary data, +#and child is the result of hashing all the tree below this step. +# +#Any special data, like prepending child with the length, or prepending the entire operation with +#some value to differentiate from leaf nodes, should be included in prefix and suffix. +#If either of prefix or suffix is empty, we just treat it as an empty string +class InnerOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + SUFFIX_FIELD_NUMBER: builtins.int + hash: global___HashOp.V = ... + prefix: builtins.bytes = ... + suffix: builtins.bytes = ... + def __init__(self, + *, + hash : global___HashOp.V = ..., + prefix : builtins.bytes = ..., + suffix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"prefix",b"prefix",u"suffix",b"suffix"]) -> None: ... +global___InnerOp = InnerOp + +#* +#ProofSpec defines what the expected parameters are for a given proof type. +#This can be stored in the client and used to validate any incoming proofs. +# +#verify(ProofSpec, Proof) -> Proof | Error +# +#As demonstrated in tests, if we don't fix the algorithm used to calculate the +#LeafHash for a given tree, there are many possible key-value pairs that can +#generate a given hash (by interpretting the preimage differently). +#We need this for proper security, requires client knows a priori what +#tree format server uses. But not in code, rather a configuration object. +class ProofSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LEAF_SPEC_FIELD_NUMBER: builtins.int + INNER_SPEC_FIELD_NUMBER: builtins.int + MAX_DEPTH_FIELD_NUMBER: builtins.int + MIN_DEPTH_FIELD_NUMBER: builtins.int + # any field in the ExistenceProof must be the same as in this spec. + # except Prefix, which is just the first bytes of prefix (spec can be longer) + @property + def leaf_spec(self) -> global___LeafOp: ... + @property + def inner_spec(self) -> global___InnerSpec: ... + # max_depth (if > 0) is the maximum number of InnerOps allowed (mainly for fixed-depth tries) + max_depth: builtins.int = ... + # min_depth (if > 0) is the minimum number of InnerOps allowed (mainly for fixed-depth tries) + min_depth: builtins.int = ... + def __init__(self, + *, + leaf_spec : typing.Optional[global___LeafOp] = ..., + inner_spec : typing.Optional[global___InnerSpec] = ..., + max_depth : builtins.int = ..., + min_depth : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inner_spec",b"inner_spec",u"leaf_spec",b"leaf_spec",u"max_depth",b"max_depth",u"min_depth",b"min_depth"]) -> None: ... +global___ProofSpec = ProofSpec + +# +#InnerSpec contains all store-specific structure info to determine if two proofs from a +#given store are neighbors. +# +#This enables: +# +#isLeftMost(spec: InnerSpec, op: InnerOp) +#isRightMost(spec: InnerSpec, op: InnerOp) +#isLeftNeighbor(spec: InnerSpec, left: InnerOp, right: InnerOp) +class InnerSpec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHILD_ORDER_FIELD_NUMBER: builtins.int + CHILD_SIZE_FIELD_NUMBER: builtins.int + MIN_PREFIX_LENGTH_FIELD_NUMBER: builtins.int + MAX_PREFIX_LENGTH_FIELD_NUMBER: builtins.int + EMPTY_CHILD_FIELD_NUMBER: builtins.int + HASH_FIELD_NUMBER: builtins.int + # Child order is the ordering of the children node, must count from 0 + # iavl tree is [0, 1] (left then right) + # merk is [0, 2, 1] (left, right, here) + @property + def child_order(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + child_size: builtins.int = ... + min_prefix_length: builtins.int = ... + max_prefix_length: builtins.int = ... + # empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0) + empty_child: builtins.bytes = ... + # hash is the algorithm that must be used for each InnerOp + hash: global___HashOp.V = ... + def __init__(self, + *, + child_order : typing.Optional[typing.Iterable[builtins.int]] = ..., + child_size : builtins.int = ..., + min_prefix_length : builtins.int = ..., + max_prefix_length : builtins.int = ..., + empty_child : builtins.bytes = ..., + hash : global___HashOp.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"child_order",b"child_order",u"child_size",b"child_size",u"empty_child",b"empty_child",u"hash",b"hash",u"max_prefix_length",b"max_prefix_length",u"min_prefix_length",b"min_prefix_length"]) -> None: ... +global___InnerSpec = InnerSpec + +# +#BatchProof is a group of multiple proof types than can be compressed +class BatchProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ENTRIES_FIELD_NUMBER: builtins.int + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___BatchEntry]: ... + def __init__(self, + *, + entries : typing.Optional[typing.Iterable[global___BatchEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries"]) -> None: ... +global___BatchProof = BatchProof + +# Use BatchEntry not CommitmentProof, to avoid recursion +class BatchEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___ExistenceProof: ... + @property + def nonexist(self) -> global___NonExistenceProof: ... + def __init__(self, + *, + exist : typing.Optional[global___ExistenceProof] = ..., + nonexist : typing.Optional[global___NonExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... +global___BatchEntry = BatchEntry + +#***** all items here are compressed forms ****** + +class CompressedBatchProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ENTRIES_FIELD_NUMBER: builtins.int + LOOKUP_INNERS_FIELD_NUMBER: builtins.int + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___CompressedBatchEntry]: ... + @property + def lookup_inners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InnerOp]: ... + def __init__(self, + *, + entries : typing.Optional[typing.Iterable[global___CompressedBatchEntry]] = ..., + lookup_inners : typing.Optional[typing.Iterable[global___InnerOp]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"lookup_inners",b"lookup_inners"]) -> None: ... +global___CompressedBatchProof = CompressedBatchProof + +# Use BatchEntry not CommitmentProof, to avoid recursion +class CompressedBatchEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXIST_FIELD_NUMBER: builtins.int + NONEXIST_FIELD_NUMBER: builtins.int + @property + def exist(self) -> global___CompressedExistenceProof: ... + @property + def nonexist(self) -> global___CompressedNonExistenceProof: ... + def __init__(self, + *, + exist : typing.Optional[global___CompressedExistenceProof] = ..., + nonexist : typing.Optional[global___CompressedNonExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"exist",b"exist",u"nonexist",b"nonexist",u"proof",b"proof"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"proof",b"proof"]) -> typing.Optional[typing_extensions.Literal["exist","nonexist"]]: ... +global___CompressedBatchEntry = CompressedBatchEntry + +class CompressedExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + LEAF_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def leaf(self) -> global___LeafOp: ... + # these are indexes into the lookup_inners table in CompressedBatchProof + @property + def path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + leaf : typing.Optional[global___LeafOp] = ..., + path : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"leaf",b"leaf"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"leaf",b"leaf",u"path",b"path",u"value",b"value"]) -> None: ... +global___CompressedExistenceProof = CompressedExistenceProof + +class CompressedNonExistenceProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + LEFT_FIELD_NUMBER: builtins.int + RIGHT_FIELD_NUMBER: builtins.int + # TODO: remove this as unnecessary??? we prove a range + key: builtins.bytes = ... + @property + def left(self) -> global___CompressedExistenceProof: ... + @property + def right(self) -> global___CompressedExistenceProof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + left : typing.Optional[global___CompressedExistenceProof] = ..., + right : typing.Optional[global___CompressedExistenceProof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"left",b"left",u"right",b"right"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"left",b"left",u"right",b"right"]) -> None: ... +global___CompressedNonExistenceProof = CompressedNonExistenceProof diff --git a/pyband/proto/confio/proofs_pb2_grpc.pyi b/pyband/proto/confio/proofs_pb2_grpc.pyi new file mode 100644 index 0000000..2941a34 --- /dev/null +++ b/pyband/proto/confio/proofs_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .proofs_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi new file mode 100644 index 0000000..acfb389 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/auth_pb2.pyi @@ -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 diff --git a/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi new file mode 100644 index 0000000..2ff2af3 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/auth_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .auth_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..b0bbaeb --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2.pyi @@ -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 diff --git a/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..cdd1697 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2.pyi @@ -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 diff --git a/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..a6e6600 --- /dev/null +++ b/pyband/proto/cosmos/auth/v1beta1/query_pb2_grpc.pyi @@ -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: ... diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..f083666 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2.pyi @@ -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 diff --git a/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi new file mode 100644 index 0000000..5ff589b --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2.pyi @@ -0,0 +1,53 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# EventGrant is emitted on Msg/Grant +class EventGrant(google.protobuf.message.Message): + 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 for which an autorization is granted + msg_type_url: typing.Text = ... + # Granter account address + granter: typing.Text = ... + # Grantee account address + grantee: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___EventGrant = EventGrant + +# EventRevoke is emitted on Msg/Revoke +class EventRevoke(google.protobuf.message.Message): + 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 for which an autorization is revoked + msg_type_url: typing.Text = ... + # Granter account address + granter: typing.Text = ... + # Grantee account address + grantee: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___EventRevoke = EventRevoke diff --git a/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi new file mode 100644 index 0000000..2e3aadb --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/event_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .event_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..09c3fb9 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2.pyi @@ -0,0 +1,51 @@ +""" +@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 google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the authz module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHORIZATION_FIELD_NUMBER: builtins.int + @property + def authorization(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GrantAuthorization]: ... + def __init__(self, + *, + authorization : typing.Optional[typing.Iterable[global___GrantAuthorization]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authorization",b"authorization"]) -> None: ... +global___GenesisState = GenesisState + +# GrantAuthorization defines the GenesisState/GrantAuthorization type. +class GrantAuthorization(google.protobuf.message.Message): + 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: typing.Text = ... + grantee: typing.Text = ... + @property + def authorization(self) -> google.protobuf.any_pb2.Any: ... + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + 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",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___GrantAuthorization = GrantAuthorization diff --git a/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..03b4ffa --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2.pyi @@ -0,0 +1,59 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryGrantsRequest is the request type for the Query/Grants RPC method. +class QueryGrantsRequest(google.protobuf.message.Message): + 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: typing.Text = ... + grantee: typing.Text = ... + # Optional, msg_type_url, when set, will query only grants matching given msg type. + msg_type_url: typing.Text = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + msg_type_url : typing.Text = ..., + 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"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url",u"pagination",b"pagination"]) -> None: ... +global___QueryGrantsRequest = QueryGrantsRequest + +# QueryGrantsResponse is the response type for the Query/Authorizations RPC method. +class QueryGrantsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # authorizations is a list of grants granted for grantee by granter. + @property + def grants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.authz.v1beta1.authz_pb2.Grant]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + grants : typing.Optional[typing.Iterable[cosmos.authz.v1beta1.authz_pb2.Grant]] = ..., + 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"grants",b"grants",u"pagination",b"pagination"]) -> None: ... +global___QueryGrantsResponse = QueryGrantsResponse diff --git a/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..7655ec2 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@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: ... + # Returns list of `Authorization`, granted to the grantee by the granter. + Grants:grpc.UnaryUnaryMultiCallable[ + global___QueryGrantsRequest, + global___QueryGrantsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Returns list of `Authorization`, granted to the grantee by the granter. + @abc.abstractmethod + def Grants(self, + request: global___QueryGrantsRequest, + context: grpc.ServicerContext, + ) -> global___QueryGrantsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..8dd9184 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2.pyi @@ -0,0 +1,102 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgGrant is a request type for Grant method. It declares authorization to the grantee +# on behalf of the granter with the provided expiration time. +class MsgGrant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + GRANT_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + @property + def grant(self) -> cosmos.authz.v1beta1.authz_pb2.Grant: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + grant : typing.Optional[cosmos.authz.v1beta1.authz_pb2.Grant] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"grant",b"grant"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grant",b"grant",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgGrant = MsgGrant + +# MsgExecResponse defines the Msg/MsgExecResponse response type. +class MsgExecResponse(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"results",b"results"]) -> None: ... +global___MsgExecResponse = MsgExecResponse + +# 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. +class MsgExec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTEE_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + grantee: typing.Text = ... + # Authorization Msg requests to execute. Each msg must implement Authorization interface + # The x/authz will try to find a grant matching (msg.signers[0], grantee, MsgTypeURL(msg)) + # triple and validate it. + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + grantee : typing.Text = ..., + msgs : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"msgs",b"msgs"]) -> None: ... +global___MsgExec = MsgExec + +# MsgGrantResponse defines the Msg/MsgGrant response type. +class MsgGrantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgGrantResponse = MsgGrantResponse + +# MsgRevoke revokes any authorization with the provided sdk.Msg type on the +# granter's account with that has been granted to the grantee. +class MsgRevoke(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + granter: typing.Text = ... + grantee: typing.Text = ... + msg_type_url: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + msg_type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter",u"msg_type_url",b"msg_type_url"]) -> None: ... +global___MsgRevoke = MsgRevoke + +# MsgRevokeResponse defines the Msg/MsgRevokeResponse response type. +class MsgRevokeResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRevokeResponse = MsgRevokeResponse diff --git a/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..1dab825 --- /dev/null +++ b/pyband/proto/cosmos/authz/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the authz Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # 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. + Grant:grpc.UnaryUnaryMultiCallable[ + global___MsgGrant, + global___MsgGrantResponse] = ... + + # 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. + Exec:grpc.UnaryUnaryMultiCallable[ + global___MsgExec, + global___MsgExecResponse] = ... + + # Revoke revokes any authorization corresponding to the provided method name on the + # granter's account that has been granted to the grantee. + Revoke:grpc.UnaryUnaryMultiCallable[ + global___MsgRevoke, + global___MsgRevokeResponse] = ... + + +# Msg defines the authz Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # 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. + @abc.abstractmethod + def Grant(self, + request: global___MsgGrant, + context: grpc.ServicerContext, + ) -> global___MsgGrantResponse: ... + + # 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. + @abc.abstractmethod + def Exec(self, + request: global___MsgExec, + context: grpc.ServicerContext, + ) -> global___MsgExecResponse: ... + + # Revoke revokes any authorization corresponding to the provided method name on the + # granter's account that has been granted to the grantee. + @abc.abstractmethod + def Revoke(self, + request: global___MsgRevoke, + context: grpc.ServicerContext, + ) -> global___MsgRevokeResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..2c0ac50 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2.pyi @@ -0,0 +1,27 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SendAuthorization allows the grantee to spend up to spend_limit coins from +# the granter's account. +class SendAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SPEND_LIMIT_FIELD_NUMBER: builtins.int + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"spend_limit",b"spend_limit"]) -> None: ... +global___SendAuthorization = SendAuthorization diff --git a/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi new file mode 100644 index 0000000..c0cb422 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/bank_pb2.pyi @@ -0,0 +1,155 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Params defines the parameters for the bank module. +class Params(google.protobuf.message.Message): + 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]: ... + default_send_enabled: builtins.bool = ... + def __init__(self, + *, + send_enabled : typing.Optional[typing.Iterable[global___SendEnabled]] = ..., + default_send_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"default_send_enabled",b"default_send_enabled",u"send_enabled",b"send_enabled"]) -> None: ... +global___Params = Params + +# SendEnabled maps coin denom to a send_enabled status (whether a denom is +# sendable). +class SendEnabled(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + ENABLED_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + enabled: builtins.bool = ... + def __init__(self, + *, + denom : typing.Text = ..., + enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom",u"enabled",b"enabled"]) -> None: ... +global___SendEnabled = SendEnabled + +# Input models transaction input. +class Input(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Input = Input + +# Output models transaction outputs. +class Output(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + address: typing.Text = ... + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Output = Output + +# 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. +class Supply(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"total",b"total"]) -> None: ... +global___Supply = Supply + +# DenomUnit represents a struct that describes a given +# denomination unit of the basic token. +class DenomUnit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + EXPONENT_FIELD_NUMBER: builtins.int + ALIASES_FIELD_NUMBER: builtins.int + # denom represents the string name of the given denom unit (e.g uatom). + denom: typing.Text = ... + # 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 = 1^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). + exponent: builtins.int = ... + # aliases is a list of string aliases for the given denom + @property + def aliases(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + denom : typing.Text = ..., + exponent : builtins.int = ..., + aliases : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"aliases",b"aliases",u"denom",b"denom",u"exponent",b"exponent"]) -> None: ... +global___DenomUnit = DenomUnit + +# Metadata represents a struct that describes +# a basic token. +class Metadata(google.protobuf.message.Message): + 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 + description: typing.Text = ... + # denom_units represents the list of DenomUnit's for a given coin + @property + def denom_units(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DenomUnit]: ... + # base represents the base denom (should be the DenomUnit with exponent = 0). + base: typing.Text = ... + # display indicates the suggested denom that should be + # displayed in clients. + display: typing.Text = ... + # name defines the name of the token (eg: Cosmos Atom) + name: typing.Text = ... + # symbol is the token symbol usually shown on exchanges (eg: ATOM). This can + # be the same as the display. + symbol: typing.Text = ... + def __init__(self, + *, + description : typing.Text = ..., + denom_units : typing.Optional[typing.Iterable[global___DenomUnit]] = ..., + base : typing.Text = ..., + display : typing.Text = ..., + name : typing.Text = ..., + symbol : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base",b"base",u"denom_units",b"denom_units",u"description",b"description",u"display",b"display",u"name",b"name",u"symbol",b"symbol"]) -> None: ... +global___Metadata = Metadata diff --git a/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi new file mode 100644 index 0000000..fe241e2 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/bank_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .bank_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..c0a96c3 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the bank module's genesis state. +class GenesisState(google.protobuf.message.Message): + 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 + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... + # balances is an array containing the balances of all the accounts. + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Balance]: ... + # 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 supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # denom_metadata defines the metadata of the differents coins. + @property + def denom_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Params] = ..., + balances : typing.Optional[typing.Iterable[global___Balance]] = ..., + supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + denom_metadata : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balances",b"balances",u"denom_metadata",b"denom_metadata",u"params",b"params",u"supply",b"supply"]) -> None: ... +global___GenesisState = GenesisState + +# Balance defines an account address and balance pair used in the bank module's +# genesis state. +class Balance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + COINS_FIELD_NUMBER: builtins.int + # address is the address of the balance holder. + address: typing.Text = ... + # coins defines the different coins this balance holds. + @property + def coins(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + address : typing.Text = ..., + coins : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"coins",b"coins"]) -> None: ... +global___Balance = Balance diff --git a/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..95a5ca7 --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/query_pb2.pyi @@ -0,0 +1,238 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryBalanceRequest is the request type for the Query/Balance RPC method. +class QueryBalanceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + DENOM_FIELD_NUMBER: builtins.int + # address is the address to query balances for. + address: typing.Text = ... + # denom is the coin denom to query balances for. + denom: typing.Text = ... + def __init__(self, + *, + address : typing.Text = ..., + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"denom",b"denom"]) -> None: ... +global___QueryBalanceRequest = QueryBalanceRequest + +# QueryBalanceResponse is the response type for the Query/Balance RPC method. +class QueryBalanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BALANCE_FIELD_NUMBER: builtins.int + # balance is the balance of the coin. + @property + def balance(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance"]) -> None: ... +global___QueryBalanceResponse = QueryBalanceResponse + +# QueryBalanceRequest is the request type for the Query/AllBalances RPC method. +class QueryAllBalancesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # address is the address to query balances for. + address: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + address : typing.Text = ..., + 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"address",b"address",u"pagination",b"pagination"]) -> None: ... +global___QueryAllBalancesRequest = QueryAllBalancesRequest + +# QueryAllBalancesResponse is the response type for the Query/AllBalances RPC +# method. +class QueryAllBalancesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BALANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # balances is the balances of all the coins. + @property + def balances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + balances : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + 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"balances",b"balances",u"pagination",b"pagination"]) -> None: ... +global___QueryAllBalancesResponse = QueryAllBalancesResponse + +# QueryTotalSupplyRequest is the request type for the Query/TotalSupply RPC +# method. +class QueryTotalSupplyRequest(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___QueryTotalSupplyRequest = QueryTotalSupplyRequest + +# QueryTotalSupplyResponse is the response type for the Query/TotalSupply RPC +# method +class QueryTotalSupplyResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUPPLY_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # supply is the supply of the coins + @property + def supply(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + supply : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + 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"pagination",b"pagination",u"supply",b"supply"]) -> None: ... +global___QueryTotalSupplyResponse = QueryTotalSupplyResponse + +# QuerySupplyOfRequest is the request type for the Query/SupplyOf RPC method. +class QuerySupplyOfRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + # denom is the coin denom to query balances for. + denom: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... +global___QuerySupplyOfRequest = QuerySupplyOfRequest + +# QuerySupplyOfResponse is the response type for the Query/SupplyOf RPC method. +class QuerySupplyOfResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AMOUNT_FIELD_NUMBER: builtins.int + # amount is the supply of the coin. + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> None: ... +global___QuerySupplyOfResponse = QuerySupplyOfResponse + +# QueryParamsRequest defines the request type for querying x/bank parameters. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse defines the response type for querying x/bank parameters. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + @property + def params(self) -> cosmos.bank.v1beta1.bank_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.bank.v1beta1.bank_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 + +# QueryDenomsMetadataRequest is the request type for the Query/DenomsMetadata RPC method. +class QueryDenomsMetadataRequest(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___QueryDenomsMetadataRequest = QueryDenomsMetadataRequest + +# QueryDenomsMetadataResponse is the response type for the Query/DenomsMetadata RPC +# method. +class QueryDenomsMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + METADATAS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # metadata provides the client information for all the registered tokens. + @property + def metadatas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Metadata]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + metadatas : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Metadata]] = ..., + 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"metadatas",b"metadatas",u"pagination",b"pagination"]) -> None: ... +global___QueryDenomsMetadataResponse = QueryDenomsMetadataResponse + +# QueryDenomMetadataRequest is the request type for the Query/DenomMetadata RPC method. +class QueryDenomMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + # denom is the coin denom to query the metadata for. + denom: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom",b"denom"]) -> None: ... +global___QueryDenomMetadataRequest = QueryDenomMetadataRequest + +# QueryDenomMetadataResponse is the response type for the Query/DenomMetadata RPC +# method. +class QueryDenomMetadataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + METADATA_FIELD_NUMBER: builtins.int + # metadata describes and provides all the client information for the requested token. + @property + def metadata(self) -> cosmos.bank.v1beta1.bank_pb2.Metadata: ... + def __init__(self, + *, + metadata : typing.Optional[cosmos.bank.v1beta1.bank_pb2.Metadata] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> None: ... +global___QueryDenomMetadataResponse = QueryDenomMetadataResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..ff20b6d --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,100 @@ +""" +@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: ... + # Balance queries the balance of a single coin for a single account. + Balance:grpc.UnaryUnaryMultiCallable[ + global___QueryBalanceRequest, + global___QueryBalanceResponse] = ... + + # AllBalances queries the balance of all coins for a single account. + AllBalances:grpc.UnaryUnaryMultiCallable[ + global___QueryAllBalancesRequest, + global___QueryAllBalancesResponse] = ... + + # TotalSupply queries the total supply of all coins. + TotalSupply:grpc.UnaryUnaryMultiCallable[ + global___QueryTotalSupplyRequest, + global___QueryTotalSupplyResponse] = ... + + # SupplyOf queries the supply of a single coin. + SupplyOf:grpc.UnaryUnaryMultiCallable[ + global___QuerySupplyOfRequest, + global___QuerySupplyOfResponse] = ... + + # Params queries the parameters of x/bank module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # DenomsMetadata queries the client metadata of a given coin denomination. + DenomMetadata:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomMetadataRequest, + global___QueryDenomMetadataResponse] = ... + + # DenomsMetadata queries the client metadata for all registered coin denominations. + DenomsMetadata:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomsMetadataRequest, + global___QueryDenomsMetadataResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Balance queries the balance of a single coin for a single account. + @abc.abstractmethod + def Balance(self, + request: global___QueryBalanceRequest, + context: grpc.ServicerContext, + ) -> global___QueryBalanceResponse: ... + + # AllBalances queries the balance of all coins for a single account. + @abc.abstractmethod + def AllBalances(self, + request: global___QueryAllBalancesRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllBalancesResponse: ... + + # TotalSupply queries the total supply of all coins. + @abc.abstractmethod + def TotalSupply(self, + request: global___QueryTotalSupplyRequest, + context: grpc.ServicerContext, + ) -> global___QueryTotalSupplyResponse: ... + + # SupplyOf queries the supply of a single coin. + @abc.abstractmethod + def SupplyOf(self, + request: global___QuerySupplyOfRequest, + context: grpc.ServicerContext, + ) -> global___QuerySupplyOfResponse: ... + + # Params queries the parameters of x/bank module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # DenomsMetadata queries the client metadata of a given coin denomination. + @abc.abstractmethod + def DenomMetadata(self, + request: global___QueryDenomMetadataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomMetadataResponse: ... + + # DenomsMetadata queries the client metadata for all registered coin denominations. + @abc.abstractmethod + def DenomsMetadata(self, + request: global___QueryDenomsMetadataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomsMetadataResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..934b30c --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/tx_pb2.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSend represents a message to send coins from one account to another. +class MsgSend(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FROM_ADDRESS_FIELD_NUMBER: builtins.int + TO_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + from_address: typing.Text = ... + to_address: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + from_address : typing.Text = ..., + to_address : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... +global___MsgSend = MsgSend + +# MsgSendResponse defines the Msg/Send response type. +class MsgSendResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSendResponse = MsgSendResponse + +# MsgMultiSend represents an arbitrary multi-in, multi-out send message. +class MsgMultiSend(google.protobuf.message.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]: ... + @property + def outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.bank.v1beta1.bank_pb2.Output]: ... + def __init__(self, + *, + inputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Input]] = ..., + outputs : typing.Optional[typing.Iterable[cosmos.bank.v1beta1.bank_pb2.Output]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inputs",b"inputs",u"outputs",b"outputs"]) -> None: ... +global___MsgMultiSend = MsgMultiSend + +# MsgMultiSendResponse defines the Msg/MultiSend response type. +class MsgMultiSendResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgMultiSendResponse = MsgMultiSendResponse diff --git a/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..13379be --- /dev/null +++ b/pyband/proto/cosmos/bank/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Send defines a method for sending coins from one account to another account. + Send:grpc.UnaryUnaryMultiCallable[ + global___MsgSend, + global___MsgSendResponse] = ... + + # MultiSend defines a method for sending coins from some accounts to other accounts. + MultiSend:grpc.UnaryUnaryMultiCallable[ + global___MsgMultiSend, + global___MsgMultiSendResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Send defines a method for sending coins from one account to another account. + @abc.abstractmethod + def Send(self, + request: global___MsgSend, + context: grpc.ServicerContext, + ) -> global___MsgSendResponse: ... + + # MultiSend defines a method for sending coins from some accounts to other accounts. + @abc.abstractmethod + def MultiSend(self, + request: global___MsgMultiSend, + context: grpc.ServicerContext, + ) -> global___MsgMultiSendResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi new file mode 100644 index 0000000..7a9a68a --- /dev/null +++ b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2.pyi @@ -0,0 +1,256 @@ +""" +@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 tendermint.abci.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# TxResponse defines a structure containing relevant tx data and metadata. The +# tags are stringified and the log is JSON decoded. +class TxResponse(google.protobuf.message.Message): + 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 + # The block height + height: builtins.int = ... + # The transaction hash. + txhash: typing.Text = ... + # Namespace for the Code + codespace: typing.Text = ... + # Response code. + code: builtins.int = ... + # Result bytes, if any. + data: typing.Text = ... + # The output of the application's logger (raw string). May be + # non-deterministic. + raw_log: typing.Text = ... + # The output of the application's logger (typed). May be non-deterministic. + @property + def logs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ABCIMessageLog]: ... + # Additional information. May be non-deterministic. + info: typing.Text = ... + # Amount of gas requested for transaction. + gas_wanted: builtins.int = ... + # Amount of gas consumed by transaction. + gas_used: builtins.int = ... + # The request transaction bytes. + @property + def tx(self) -> google.protobuf.any_pb2.Any: ... + # 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. + timestamp: typing.Text = ... + def __init__(self, + *, + height : builtins.int = ..., + txhash : typing.Text = ..., + codespace : typing.Text = ..., + code : builtins.int = ..., + data : typing.Text = ..., + raw_log : typing.Text = ..., + logs : typing.Optional[typing.Iterable[global___ABCIMessageLog]] = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + tx : typing.Optional[google.protobuf.any_pb2.Any] = ..., + timestamp : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"height",b"height",u"info",b"info",u"logs",b"logs",u"raw_log",b"raw_log",u"timestamp",b"timestamp",u"tx",b"tx",u"txhash",b"txhash"]) -> None: ... +global___TxResponse = TxResponse + +# ABCIMessageLog defines a structure containing an indexed tx ABCI message log. +class ABCIMessageLog(google.protobuf.message.Message): + 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: typing.Text = ... + # Events contains a slice of Event objects that were emitted during some + # execution. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StringEvent]: ... + def __init__(self, + *, + msg_index : builtins.int = ..., + log : typing.Text = ..., + events : typing.Optional[typing.Iterable[global___StringEvent]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"log",b"log",u"msg_index",b"msg_index"]) -> None: ... +global___ABCIMessageLog = ABCIMessageLog + +# StringEvent defines en Event object wrapper where all the attributes +# contain key/value pairs that are strings instead of raw bytes. +class StringEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: typing.Text = ... + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Attribute]: ... + def __init__(self, + *, + type : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[global___Attribute]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... +global___StringEvent = StringEvent + +# Attribute defines an attribute wrapper where the key and value are +# strings instead of raw bytes. +class Attribute(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___Attribute = Attribute + +# GasInfo defines tx execution gas context. +class GasInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GAS_WANTED_FIELD_NUMBER: builtins.int + GAS_USED_FIELD_NUMBER: builtins.int + # GasWanted is the maximum units of work we allow this tx to perform. + gas_wanted: builtins.int = ... + # GasUsed is the amount of gas actually consumed. + gas_used: builtins.int = ... + def __init__(self, + *, + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted"]) -> None: ... +global___GasInfo = GasInfo + +# Result is the union of ResponseFormat and ResponseCheckTx. +class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + EVENTS_FIELD_NUMBER: builtins.int + # Data is any data returned from message or handler execution. It MUST be + # length prefixed in order to separate data from multiple message executions. + data: builtins.bytes = ... + # Log contains the log information from message or handler execution. + log: typing.Text = ... + # Events contains a slice of Event objects that were emitted during message + # or handler execution. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[tendermint.abci.types_pb2.Event]: ... + def __init__(self, + *, + data : builtins.bytes = ..., + log : typing.Text = ..., + events : typing.Optional[typing.Iterable[tendermint.abci.types_pb2.Event]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"events",b"events",u"log",b"log"]) -> None: ... +global___Result = Result + +# SimulationResponse defines the response generated when a transaction is +# successfully simulated. +class SimulationResponse(google.protobuf.message.Message): + 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 : typing.Optional[global___GasInfo] = ..., + result : typing.Optional[global___Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... +global___SimulationResponse = SimulationResponse + +# MsgData defines the data returned in a Result object during message +# execution. +class MsgData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + msg_type: typing.Text = ... + data: builtins.bytes = ... + def __init__(self, + *, + msg_type : typing.Text = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"msg_type",b"msg_type"]) -> None: ... +global___MsgData = MsgData + +# TxMsgData defines a list of MsgData. A transaction will have a MsgData object +# for each message. +class TxMsgData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + @property + def data(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgData]: ... + def __init__(self, + *, + data : typing.Optional[typing.Iterable[global___MsgData]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... +global___TxMsgData = TxMsgData + +# SearchTxsResult defines a structure for querying txs pageable +class SearchTxsResult(google.protobuf.message.Message): + 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 + # Count of all txs + total_count: builtins.int = ... + # Count of txs in current page + count: builtins.int = ... + # Index of current page, start from 1 + page_number: builtins.int = ... + # Count of total pages + page_total: builtins.int = ... + # Max count txs per page + limit: builtins.int = ... + # List of txs in current page + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TxResponse]: ... + def __init__(self, + *, + total_count : builtins.int = ..., + count : builtins.int = ..., + page_number : builtins.int = ..., + page_total : builtins.int = ..., + limit : builtins.int = ..., + txs : typing.Optional[typing.Iterable[global___TxResponse]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"count",b"count",u"limit",b"limit",u"page_number",b"page_number",u"page_total",b"page_total",u"total_count",b"total_count",u"txs",b"txs"]) -> None: ... +global___SearchTxsResult = SearchTxsResult diff --git a/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi new file mode 100644 index 0000000..a1bde76 --- /dev/null +++ b/pyband/proto/cosmos/base/abci/v1beta1/abci_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .abci_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi new file mode 100644 index 0000000..3badfee --- /dev/null +++ b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2.pyi @@ -0,0 +1,40 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Pairs defines a repeated slice of Pair objects. +class Pairs(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___Pair]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... +global___Pairs = Pairs + +# Pair defines a key/value bytes tuple. +class Pair(google.protobuf.message.Message): + 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[u"key",b"key",u"value",b"value"]) -> None: ... +global___Pair = Pair diff --git a/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi new file mode 100644 index 0000000..7b68bcf --- /dev/null +++ b/pyband/proto/cosmos/base/kv/v1beta1/kv_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .kv_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi new file mode 100644 index 0000000..5d685b5 --- /dev/null +++ b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2.pyi @@ -0,0 +1,78 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PageRequest is to be embedded in gRPC request messages for efficient +# pagination. Ex: +# +# message SomeRequest { +# Foo some_parameter = 1; +# PageRequest pagination = 2; +# } +class PageRequest(google.protobuf.message.Message): + 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 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. + key: builtins.bytes = ... + # 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. + offset: 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. + limit: builtins.int = ... + # 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. + count_total: builtins.bool = ... + # reverse is set to true if results are to be returned in the descending order. + reverse: builtins.bool = ... + 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[u"count_total",b"count_total",u"key",b"key",u"limit",b"limit",u"offset",b"offset",u"reverse",b"reverse"]) -> None: ... +global___PageRequest = PageRequest + +# 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; +# } +class PageResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEXT_KEY_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + # next_key is the key to be passed to PageRequest.key to + # query the next page most efficiently + next_key: builtins.bytes = ... + # total is total number of results available if PageRequest.count_total + # was set, its value is undefined otherwise + total: builtins.int = ... + def __init__(self, + *, + next_key : builtins.bytes = ..., + total : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_key",b"next_key",u"total",b"total"]) -> None: ... +global___PageResponse = PageResponse diff --git a/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi new file mode 100644 index 0000000..fd9e1b9 --- /dev/null +++ b/pyband/proto/cosmos/base/query/v1beta1/pagination_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .pagination_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2.pyi new file mode 100644 index 0000000..c829d73 --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ListAllInterfacesRequest is the request type of the ListAllInterfaces RPC. +class ListAllInterfacesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___ListAllInterfacesRequest = ListAllInterfacesRequest + +# ListAllInterfacesResponse is the response type of the ListAllInterfaces RPC. +class ListAllInterfacesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACE_NAMES_FIELD_NUMBER: builtins.int + # interface_names is an array of all the registered interfaces. + @property + def interface_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + interface_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interface_names",b"interface_names"]) -> None: ... +global___ListAllInterfacesResponse = ListAllInterfacesResponse + +# ListImplementationsRequest is the request type of the ListImplementations +# RPC. +class ListImplementationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACE_NAME_FIELD_NUMBER: builtins.int + # interface_name defines the interface to query the implementations for. + interface_name: typing.Text = ... + def __init__(self, + *, + interface_name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interface_name",b"interface_name"]) -> None: ... +global___ListImplementationsRequest = ListImplementationsRequest + +# ListImplementationsResponse is the response type of the ListImplementations +# RPC. +class ListImplementationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IMPLEMENTATION_MESSAGE_NAMES_FIELD_NUMBER: builtins.int + @property + def implementation_message_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + implementation_message_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"implementation_message_names",b"implementation_message_names"]) -> None: ... +global___ListImplementationsResponse = ListImplementationsResponse diff --git a/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi new file mode 100644 index 0000000..2d2be0f --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v1beta1/reflection_pb2_grpc.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .reflection_pb2 import * +# ReflectionService defines a service for interface reflection. +class ReflectionServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ListAllInterfaces lists all the interfaces registered in the interface + # registry. + ListAllInterfaces:grpc.UnaryUnaryMultiCallable[ + global___ListAllInterfacesRequest, + global___ListAllInterfacesResponse] = ... + + # ListImplementations list all the concrete types that implement a given + # interface. + ListImplementations:grpc.UnaryUnaryMultiCallable[ + global___ListImplementationsRequest, + global___ListImplementationsResponse] = ... + + +# ReflectionService defines a service for interface reflection. +class ReflectionServiceServicer(metaclass=abc.ABCMeta): + # ListAllInterfaces lists all the interfaces registered in the interface + # registry. + @abc.abstractmethod + def ListAllInterfaces(self, + request: global___ListAllInterfacesRequest, + context: grpc.ServicerContext, + ) -> global___ListAllInterfacesResponse: ... + + # ListImplementations list all the concrete types that implement a given + # interface. + @abc.abstractmethod + def ListImplementations(self, + request: global___ListImplementationsRequest, + context: grpc.ServicerContext, + ) -> global___ListImplementationsResponse: ... + + +def add_ReflectionServiceServicer_to_server(servicer: ReflectionServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi new file mode 100644 index 0000000..769ae30 --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2.pyi @@ -0,0 +1,420 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# AppDescriptor describes a cosmos-sdk based application +class AppDescriptor(google.protobuf.message.Message): + 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 + # AuthnDescriptor provides information on how to authenticate transactions on the application + # NOTE: experimental and subject to change in future releases. + @property + def authn(self) -> global___AuthnDescriptor: ... + # chain provides the chain descriptor + @property + def chain(self) -> global___ChainDescriptor: ... + # codec provides metadata information regarding codec related types + @property + def codec(self) -> global___CodecDescriptor: ... + # configuration provides metadata information regarding the sdk.Config type + @property + def configuration(self) -> global___ConfigurationDescriptor: ... + # query_services provides metadata information regarding the available queriable endpoints + @property + def query_services(self) -> global___QueryServicesDescriptor: ... + # tx provides metadata information regarding how to send transactions to the given application + @property + def tx(self) -> global___TxDescriptor: ... + def __init__(self, + *, + authn : typing.Optional[global___AuthnDescriptor] = ..., + chain : typing.Optional[global___ChainDescriptor] = ..., + codec : typing.Optional[global___CodecDescriptor] = ..., + configuration : typing.Optional[global___ConfigurationDescriptor] = ..., + query_services : typing.Optional[global___QueryServicesDescriptor] = ..., + tx : typing.Optional[global___TxDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authn",b"authn",u"chain",b"chain",u"codec",b"codec",u"configuration",b"configuration",u"query_services",b"query_services",u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn",b"authn",u"chain",b"chain",u"codec",b"codec",u"configuration",b"configuration",u"query_services",b"query_services",u"tx",b"tx"]) -> None: ... +global___AppDescriptor = AppDescriptor + +# TxDescriptor describes the accepted transaction type +class TxDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + MSGS_FIELD_NUMBER: builtins.int + # 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. + fullname: typing.Text = ... + # msgs lists the accepted application messages (sdk.Msg) + @property + def msgs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MsgDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + msgs : typing.Optional[typing.Iterable[global___MsgDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"msgs",b"msgs"]) -> None: ... +global___TxDescriptor = TxDescriptor + +# AuthnDescriptor provides information on how to sign transactions without relying +# on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures +class AuthnDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGN_MODES_FIELD_NUMBER: builtins.int + # sign_modes defines the supported signature algorithm + @property + def sign_modes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningModeDescriptor]: ... + def __init__(self, + *, + sign_modes : typing.Optional[typing.Iterable[global___SigningModeDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"sign_modes",b"sign_modes"]) -> None: ... +global___AuthnDescriptor = AuthnDescriptor + +# 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 +class SigningModeDescriptor(google.protobuf.message.Message): + 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 defines the unique name of the signing mode + name: typing.Text = ... + # number is the unique int32 identifier for the sign_mode enum + number: builtins.int = ... + # 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 + authn_info_provider_method_fullname: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + number : builtins.int = ..., + authn_info_provider_method_fullname : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn_info_provider_method_fullname",b"authn_info_provider_method_fullname",u"name",b"name",u"number",b"number"]) -> None: ... +global___SigningModeDescriptor = SigningModeDescriptor + +# ChainDescriptor describes chain information of the application +class ChainDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ID_FIELD_NUMBER: builtins.int + # id is the chain id + id: typing.Text = ... + def __init__(self, + *, + id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"id",b"id"]) -> None: ... +global___ChainDescriptor = ChainDescriptor + +# CodecDescriptor describes the registered interfaces and provides metadata information on the types +class CodecDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INTERFACES_FIELD_NUMBER: builtins.int + # interfaces is a list of the registerted interfaces descriptors + @property + def interfaces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceDescriptor]: ... + def __init__(self, + *, + interfaces : typing.Optional[typing.Iterable[global___InterfaceDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"interfaces",b"interfaces"]) -> None: ... +global___CodecDescriptor = CodecDescriptor + +# InterfaceDescriptor describes the implementation of an interface +class InterfaceDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + INTERFACE_ACCEPTING_MESSAGES_FIELD_NUMBER: builtins.int + INTERFACE_IMPLEMENTERS_FIELD_NUMBER: builtins.int + # fullname is the name of the interface + fullname: typing.Text = ... + # interface_accepting_messages contains information regarding the proto messages which contain the interface as + # google.protobuf.Any field + @property + def interface_accepting_messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceAcceptingMessageDescriptor]: ... + # interface_implementers is a list of the descriptors of the interface implementers + @property + def interface_implementers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___InterfaceImplementerDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + interface_accepting_messages : typing.Optional[typing.Iterable[global___InterfaceAcceptingMessageDescriptor]] = ..., + interface_implementers : typing.Optional[typing.Iterable[global___InterfaceImplementerDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"interface_accepting_messages",b"interface_accepting_messages",u"interface_implementers",b"interface_implementers"]) -> None: ... +global___InterfaceDescriptor = InterfaceDescriptor + +# InterfaceImplementerDescriptor describes an interface implementer +class InterfaceImplementerDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + TYPE_URL_FIELD_NUMBER: builtins.int + # fullname is the protobuf queryable name of the interface implementer + fullname: typing.Text = ... + # 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 + type_url: typing.Text = ... + def __init__(self, + *, + fullname : typing.Text = ..., + type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"type_url",b"type_url"]) -> None: ... +global___InterfaceImplementerDescriptor = InterfaceImplementerDescriptor + +# InterfaceAcceptingMessageDescriptor describes a protobuf message which contains +# an interface represented as a google.protobuf.Any +class InterfaceAcceptingMessageDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + FIELD_DESCRIPTOR_NAMES_FIELD_NUMBER: builtins.int + # fullname is the protobuf fullname of the type containing the interface + fullname: typing.Text = ... + # 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) + @property + def field_descriptor_names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + field_descriptor_names : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"field_descriptor_names",b"field_descriptor_names",u"fullname",b"fullname"]) -> None: ... +global___InterfaceAcceptingMessageDescriptor = InterfaceAcceptingMessageDescriptor + +# ConfigurationDescriptor contains metadata information on the sdk.Config +class ConfigurationDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BECH32_ACCOUNT_ADDRESS_PREFIX_FIELD_NUMBER: builtins.int + # bech32_account_address_prefix is the account address prefix + bech32_account_address_prefix: typing.Text = ... + def __init__(self, + *, + bech32_account_address_prefix : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bech32_account_address_prefix",b"bech32_account_address_prefix"]) -> None: ... +global___ConfigurationDescriptor = ConfigurationDescriptor + +# MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction +class MsgDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MSG_TYPE_URL_FIELD_NUMBER: builtins.int + # msg_type_url contains the TypeURL of a sdk.Msg. + msg_type_url: typing.Text = ... + def __init__(self, + *, + msg_type_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"msg_type_url",b"msg_type_url"]) -> None: ... +global___MsgDescriptor = MsgDescriptor + +# GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC +class GetAuthnDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetAuthnDescriptorRequest = GetAuthnDescriptorRequest + +# GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC +class GetAuthnDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + AUTHN_FIELD_NUMBER: builtins.int + # authn describes how to authenticate to the application when sending transactions + @property + def authn(self) -> global___AuthnDescriptor: ... + def __init__(self, + *, + authn : typing.Optional[global___AuthnDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"authn",b"authn"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"authn",b"authn"]) -> None: ... +global___GetAuthnDescriptorResponse = GetAuthnDescriptorResponse + +# GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC +class GetChainDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetChainDescriptorRequest = GetChainDescriptorRequest + +# GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC +class GetChainDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_FIELD_NUMBER: builtins.int + # chain describes application chain information + @property + def chain(self) -> global___ChainDescriptor: ... + def __init__(self, + *, + chain : typing.Optional[global___ChainDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"chain",b"chain"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain",b"chain"]) -> None: ... +global___GetChainDescriptorResponse = GetChainDescriptorResponse + +# GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC +class GetCodecDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetCodecDescriptorRequest = GetCodecDescriptorRequest + +# GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC +class GetCodecDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODEC_FIELD_NUMBER: builtins.int + # codec describes the application codec such as registered interfaces and implementations + @property + def codec(self) -> global___CodecDescriptor: ... + def __init__(self, + *, + codec : typing.Optional[global___CodecDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"codec",b"codec"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"codec",b"codec"]) -> None: ... +global___GetCodecDescriptorResponse = GetCodecDescriptorResponse + +# GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC +class GetConfigurationDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetConfigurationDescriptorRequest = GetConfigurationDescriptorRequest + +# GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC +class GetConfigurationDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONFIG_FIELD_NUMBER: builtins.int + # config describes the application's sdk.Config + @property + def config(self) -> global___ConfigurationDescriptor: ... + def __init__(self, + *, + config : typing.Optional[global___ConfigurationDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"config",b"config"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"config",b"config"]) -> None: ... +global___GetConfigurationDescriptorResponse = GetConfigurationDescriptorResponse + +# GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC +class GetQueryServicesDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetQueryServicesDescriptorRequest = GetQueryServicesDescriptorRequest + +# GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC +class GetQueryServicesDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUERIES_FIELD_NUMBER: builtins.int + # queries provides information on the available queryable services + @property + def queries(self) -> global___QueryServicesDescriptor: ... + def __init__(self, + *, + queries : typing.Optional[global___QueryServicesDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"queries",b"queries"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"queries",b"queries"]) -> None: ... +global___GetQueryServicesDescriptorResponse = GetQueryServicesDescriptorResponse + +# GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC +class GetTxDescriptorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetTxDescriptorRequest = GetTxDescriptorRequest + +# GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC +class GetTxDescriptorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + # tx provides information on msgs that can be forwarded to the application + # alongside the accepted transaction protobuf type + @property + def tx(self) -> global___TxDescriptor: ... + def __init__(self, + *, + tx : typing.Optional[global___TxDescriptor] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> None: ... +global___GetTxDescriptorResponse = GetTxDescriptorResponse + +# QueryServicesDescriptor contains the list of cosmos-sdk queriable services +class QueryServicesDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUERY_SERVICES_FIELD_NUMBER: builtins.int + # query_services is a list of cosmos-sdk QueryServiceDescriptor + @property + def query_services(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryServiceDescriptor]: ... + def __init__(self, + *, + query_services : typing.Optional[typing.Iterable[global___QueryServiceDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"query_services",b"query_services"]) -> None: ... +global___QueryServicesDescriptor = QueryServicesDescriptor + +# QueryServiceDescriptor describes a cosmos-sdk queryable service +class QueryServiceDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + FULLNAME_FIELD_NUMBER: builtins.int + IS_MODULE_FIELD_NUMBER: builtins.int + METHODS_FIELD_NUMBER: builtins.int + # fullname is the protobuf fullname of the service descriptor + fullname: typing.Text = ... + # is_module describes if this service is actually exposed by an application's module + is_module: builtins.bool = ... + # methods provides a list of query service methods + @property + def methods(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___QueryMethodDescriptor]: ... + def __init__(self, + *, + fullname : typing.Text = ..., + is_module : builtins.bool = ..., + methods : typing.Optional[typing.Iterable[global___QueryMethodDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fullname",b"fullname",u"is_module",b"is_module",u"methods",b"methods"]) -> None: ... +global___QueryServiceDescriptor = QueryServiceDescriptor + +# 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 +class QueryMethodDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + FULL_QUERY_PATH_FIELD_NUMBER: builtins.int + # name is the protobuf name (not fullname) of the method + name: typing.Text = ... + # full_query_path is the path that can be used to query + # this method via tendermint abci.Query + full_query_path: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + full_query_path : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"full_query_path",b"full_query_path",u"name",b"name"]) -> None: ... +global___QueryMethodDescriptor = QueryMethodDescriptor diff --git a/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi new file mode 100644 index 0000000..3e3ac8b --- /dev/null +++ b/pyband/proto/cosmos/base/reflection/v2alpha1/reflection_pb2_grpc.pyi @@ -0,0 +1,92 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .reflection_pb2 import * +# ReflectionService defines a service for application reflection. +class ReflectionServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # 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. + GetAuthnDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetAuthnDescriptorRequest, + global___GetAuthnDescriptorResponse] = ... + + # GetChainDescriptor returns the description of the chain + GetChainDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetChainDescriptorRequest, + global___GetChainDescriptorResponse] = ... + + # GetCodecDescriptor returns the descriptor of the codec of the application + GetCodecDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetCodecDescriptorRequest, + global___GetCodecDescriptorResponse] = ... + + # GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + GetConfigurationDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetConfigurationDescriptorRequest, + global___GetConfigurationDescriptorResponse] = ... + + # GetQueryServicesDescriptor returns the available gRPC queryable services of the application + GetQueryServicesDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetQueryServicesDescriptorRequest, + global___GetQueryServicesDescriptorResponse] = ... + + # GetTxDescriptor returns information on the used transaction object and available msgs that can be used + GetTxDescriptor:grpc.UnaryUnaryMultiCallable[ + global___GetTxDescriptorRequest, + global___GetTxDescriptorResponse] = ... + + +# ReflectionService defines a service for application reflection. +class ReflectionServiceServicer(metaclass=abc.ABCMeta): + # 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. + @abc.abstractmethod + def GetAuthnDescriptor(self, + request: global___GetAuthnDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetAuthnDescriptorResponse: ... + + # GetChainDescriptor returns the description of the chain + @abc.abstractmethod + def GetChainDescriptor(self, + request: global___GetChainDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetChainDescriptorResponse: ... + + # GetCodecDescriptor returns the descriptor of the codec of the application + @abc.abstractmethod + def GetCodecDescriptor(self, + request: global___GetCodecDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetCodecDescriptorResponse: ... + + # GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application + @abc.abstractmethod + def GetConfigurationDescriptor(self, + request: global___GetConfigurationDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetConfigurationDescriptorResponse: ... + + # GetQueryServicesDescriptor returns the available gRPC queryable services of the application + @abc.abstractmethod + def GetQueryServicesDescriptor(self, + request: global___GetQueryServicesDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetQueryServicesDescriptorResponse: ... + + # GetTxDescriptor returns information on the used transaction object and available msgs that can be used + @abc.abstractmethod + def GetTxDescriptor(self, + request: global___GetTxDescriptorRequest, + context: grpc.ServicerContext, + ) -> global___GetTxDescriptorResponse: ... + + +def add_ReflectionServiceServicer_to_server(servicer: ReflectionServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi new file mode 100644 index 0000000..ccee03f --- /dev/null +++ b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Snapshot contains Tendermint state sync snapshot info. +class Snapshot(google.protobuf.message.Message): + 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 : typing.Optional[global___Metadata] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"metadata",b"metadata"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... +global___Snapshot = Snapshot + +# Metadata contains SDK-specific snapshot metadata. +class Metadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHUNK_HASHES_FIELD_NUMBER: builtins.int + # SHA-256 chunk hashes + @property + def chunk_hashes(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + chunk_hashes : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk_hashes",b"chunk_hashes"]) -> None: ... +global___Metadata = Metadata diff --git a/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi new file mode 100644 index 0000000..5ccfeb9 --- /dev/null +++ b/pyband/proto/cosmos/base/snapshots/v1beta1/snapshot_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2.pyi new file mode 100644 index 0000000..279dd79 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/commit_info_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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# CommitInfo defines commit information used by the multi-store when committing +# a version/height. +class CommitInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VERSION_FIELD_NUMBER: builtins.int + STORE_INFOS_FIELD_NUMBER: builtins.int + version: builtins.int = ... + @property + def store_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StoreInfo]: ... + def __init__(self, + *, + version : builtins.int = ..., + store_infos : typing.Optional[typing.Iterable[global___StoreInfo]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"store_infos",b"store_infos",u"version",b"version"]) -> None: ... +global___CommitInfo = CommitInfo + +# StoreInfo defines store-specific commit information. It contains a reference +# between a store name and the commit ID. +class StoreInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + COMMIT_ID_FIELD_NUMBER: builtins.int + name: typing.Text = ... + @property + def commit_id(self) -> global___CommitID: ... + def __init__(self, + *, + name : typing.Text = ..., + commit_id : typing.Optional[global___CommitID] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commit_id",b"commit_id",u"name",b"name"]) -> None: ... +global___StoreInfo = StoreInfo + +# CommitID defines the committment information when a specific store is +# committed. +class CommitID(google.protobuf.message.Message): + 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[u"hash",b"hash",u"version",b"version"]) -> None: ... +global___CommitID = CommitID diff --git a/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi new file mode 100644 index 0000000..a0687ed --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/commit_info_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .commit_info_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2.pyi new file mode 100644 index 0000000..015448f --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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 +class StoreKVPair(google.protobuf.message.Message): + 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 + # the store key for the KVStore this pair originates from + store_key: typing.Text = ... + # true indicates a delete operation, false indicates a set operation + delete: builtins.bool = ... + key: builtins.bytes = ... + value: builtins.bytes = ... + def __init__(self, + *, + store_key : typing.Text = ..., + delete : builtins.bool = ..., + key : builtins.bytes = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delete",b"delete",u"key",b"key",u"store_key",b"store_key",u"value",b"value"]) -> None: ... +global___StoreKVPair = StoreKVPair diff --git a/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi new file mode 100644 index 0000000..43cd2f9 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/listening_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .listening_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2.pyi new file mode 100644 index 0000000..38520f8 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/snapshot_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.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SnapshotItem is an item contained in a rootmulti.Store snapshot. +class SnapshotItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STORE_FIELD_NUMBER: builtins.int + IAVL_FIELD_NUMBER: builtins.int + @property + def store(self) -> global___SnapshotStoreItem: ... + @property + def iavl(self) -> global___SnapshotIAVLItem: ... + def __init__(self, + *, + store : typing.Optional[global___SnapshotStoreItem] = ..., + iavl : typing.Optional[global___SnapshotIAVLItem] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"iavl",b"iavl",u"item",b"item",u"store",b"store"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"item",b"item"]) -> typing.Optional[typing_extensions.Literal["store","iavl"]]: ... +global___SnapshotItem = SnapshotItem + +# SnapshotStoreItem contains metadata about a snapshotted store. +class SnapshotStoreItem(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + name: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... +global___SnapshotStoreItem = SnapshotStoreItem + +# SnapshotIAVLItem is an exported IAVL node. +class SnapshotIAVLItem(google.protobuf.message.Message): + 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 = ... + height: builtins.int = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + version : builtins.int = ..., + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"key",b"key",u"value",b"value",u"version",b"version"]) -> None: ... +global___SnapshotIAVLItem = SnapshotIAVLItem diff --git a/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi new file mode 100644 index 0000000..5ccfeb9 --- /dev/null +++ b/pyband/proto/cosmos/base/store/v1beta1/snapshot_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .snapshot_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..8329206 --- /dev/null +++ b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2.pyi @@ -0,0 +1,271 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 tendermint.p2p.types_pb2 +import tendermint.types.block_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +class GetValidatorSetByHeightRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + height: builtins.int = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + height : builtins.int = ..., + 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"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___GetValidatorSetByHeightRequest = GetValidatorSetByHeightRequest + +# GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +class GetValidatorSetByHeightResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + block_height : builtins.int = ..., + validators : typing.Optional[typing.Iterable[global___Validator]] = ..., + 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"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___GetValidatorSetByHeightResponse = GetValidatorSetByHeightResponse + +# GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method. +class GetLatestValidatorSetRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination defines an 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___GetLatestValidatorSetRequest = GetLatestValidatorSetRequest + +# GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method. +class GetLatestValidatorSetResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + block_height : builtins.int = ..., + validators : typing.Optional[typing.Iterable[global___Validator]] = ..., + 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"block_height",b"block_height",u"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___GetLatestValidatorSetResponse = GetLatestValidatorSetResponse + +# Validator is the type for the validator-set. +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: typing.Text = ... + @property + def pub_key(self) -> google.protobuf.any_pb2.Any: ... + voting_power: builtins.int = ... + proposer_priority: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + voting_power : builtins.int = ..., + proposer_priority : 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"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___Validator = Validator + +# GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method. +class GetBlockByHeightRequest(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[u"height",b"height"]) -> None: ... +global___GetBlockByHeightRequest = GetBlockByHeightRequest + +# GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method. +class GetBlockByHeightResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: ... + def __init__(self, + *, + block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., + block : typing.Optional[tendermint.types.block_pb2.Block] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... +global___GetBlockByHeightResponse = GetBlockByHeightResponse + +# GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method. +class GetLatestBlockRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetLatestBlockRequest = GetLatestBlockRequest + +# GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method. +class GetLatestBlockResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BLOCK_ID_FIELD_NUMBER: builtins.int + BLOCK_FIELD_NUMBER: builtins.int + @property + def block_id(self) -> tendermint.types.types_pb2.BlockID: ... + @property + def block(self) -> tendermint.types.block_pb2.Block: ... + def __init__(self, + *, + block_id : typing.Optional[tendermint.types.types_pb2.BlockID] = ..., + block : typing.Optional[tendermint.types.block_pb2.Block] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"block_id",b"block_id"]) -> None: ... +global___GetLatestBlockResponse = GetLatestBlockResponse + +# GetSyncingRequest is the request type for the Query/GetSyncing RPC method. +class GetSyncingRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetSyncingRequest = GetSyncingRequest + +# GetSyncingResponse is the response type for the Query/GetSyncing RPC method. +class GetSyncingResponse(google.protobuf.message.Message): + 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[u"syncing",b"syncing"]) -> None: ... +global___GetSyncingResponse = GetSyncingResponse + +# GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method. +class GetNodeInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___GetNodeInfoRequest = GetNodeInfoRequest + +# GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method. +class GetNodeInfoResponse(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.p2p.types_pb2.DefaultNodeInfo] = ..., + application_version : typing.Optional[global___VersionInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"application_version",b"application_version",u"default_node_info",b"default_node_info"]) -> None: ... +global___GetNodeInfoResponse = GetNodeInfoResponse + +# VersionInfo is the type for the GetNodeInfoResponse message. +class VersionInfo(google.protobuf.message.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: typing.Text = ... + app_name: typing.Text = ... + version: typing.Text = ... + git_commit: typing.Text = ... + build_tags: typing.Text = ... + go_version: typing.Text = ... + @property + def build_deps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Module]: ... + cosmos_sdk_version: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + app_name : typing.Text = ..., + version : typing.Text = ..., + git_commit : typing.Text = ..., + build_tags : typing.Text = ..., + go_version : typing.Text = ..., + build_deps : typing.Optional[typing.Iterable[global___Module]] = ..., + cosmos_sdk_version : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_name",b"app_name",u"build_deps",b"build_deps",u"build_tags",b"build_tags",u"cosmos_sdk_version",b"cosmos_sdk_version",u"git_commit",b"git_commit",u"go_version",b"go_version",u"name",b"name",u"version",b"version"]) -> None: ... +global___VersionInfo = VersionInfo + +# Module is the type for VersionInfo +class Module(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + SUM_FIELD_NUMBER: builtins.int + # module path + path: typing.Text = ... + # module version + version: typing.Text = ... + # checksum + sum: typing.Text = ... + def __init__(self, + *, + path : typing.Text = ..., + version : typing.Text = ..., + sum : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path",u"sum",b"sum",u"version",b"version"]) -> None: ... +global___Module = Module diff --git a/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..902ec91 --- /dev/null +++ b/pyband/proto/cosmos/base/tendermint/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,88 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Service defines the gRPC querier service for tendermint queries. +class ServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # GetNodeInfo queries the current node info. + GetNodeInfo:grpc.UnaryUnaryMultiCallable[ + global___GetNodeInfoRequest, + global___GetNodeInfoResponse] = ... + + # GetSyncing queries node syncing. + GetSyncing:grpc.UnaryUnaryMultiCallable[ + global___GetSyncingRequest, + global___GetSyncingResponse] = ... + + # GetLatestBlock returns the latest block. + GetLatestBlock:grpc.UnaryUnaryMultiCallable[ + global___GetLatestBlockRequest, + global___GetLatestBlockResponse] = ... + + # GetBlockByHeight queries block for given height. + GetBlockByHeight:grpc.UnaryUnaryMultiCallable[ + global___GetBlockByHeightRequest, + global___GetBlockByHeightResponse] = ... + + # GetLatestValidatorSet queries latest validator-set. + GetLatestValidatorSet:grpc.UnaryUnaryMultiCallable[ + global___GetLatestValidatorSetRequest, + global___GetLatestValidatorSetResponse] = ... + + # GetValidatorSetByHeight queries validator-set at a given height. + GetValidatorSetByHeight:grpc.UnaryUnaryMultiCallable[ + global___GetValidatorSetByHeightRequest, + global___GetValidatorSetByHeightResponse] = ... + + +# Service defines the gRPC querier service for tendermint queries. +class ServiceServicer(metaclass=abc.ABCMeta): + # GetNodeInfo queries the current node info. + @abc.abstractmethod + def GetNodeInfo(self, + request: global___GetNodeInfoRequest, + context: grpc.ServicerContext, + ) -> global___GetNodeInfoResponse: ... + + # GetSyncing queries node syncing. + @abc.abstractmethod + def GetSyncing(self, + request: global___GetSyncingRequest, + context: grpc.ServicerContext, + ) -> global___GetSyncingResponse: ... + + # GetLatestBlock returns the latest block. + @abc.abstractmethod + def GetLatestBlock(self, + request: global___GetLatestBlockRequest, + context: grpc.ServicerContext, + ) -> global___GetLatestBlockResponse: ... + + # GetBlockByHeight queries block for given height. + @abc.abstractmethod + def GetBlockByHeight(self, + request: global___GetBlockByHeightRequest, + context: grpc.ServicerContext, + ) -> global___GetBlockByHeightResponse: ... + + # GetLatestValidatorSet queries latest validator-set. + @abc.abstractmethod + def GetLatestValidatorSet(self, + request: global___GetLatestValidatorSetRequest, + context: grpc.ServicerContext, + ) -> global___GetLatestValidatorSetResponse: ... + + # GetValidatorSetByHeight queries validator-set at a given height. + @abc.abstractmethod + def GetValidatorSetByHeight(self, + request: global___GetValidatorSetByHeightRequest, + context: grpc.ServicerContext, + ) -> global___GetValidatorSetByHeightResponse: ... + + +def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi new file mode 100644 index 0000000..2aca66d --- /dev/null +++ b/pyband/proto/cosmos/base/v1beta1/coin_pb2.pyi @@ -0,0 +1,71 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class Coin(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + amount: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... +global___Coin = Coin + +# 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. +class DecCoin(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + denom: typing.Text = ... + amount: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom"]) -> None: ... +global___DecCoin = DecCoin + +# IntProto defines a Protobuf wrapper around an Int object. +class IntProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INT_FIELD_NUMBER: builtins.int + int: typing.Text = ... + def __init__(self, + *, + int : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"int",b"int"]) -> None: ... +global___IntProto = IntProto + +# DecProto defines a Protobuf wrapper around a Dec object. +class DecProto(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEC_FIELD_NUMBER: builtins.int + dec: typing.Text = ... + def __init__(self, + *, + dec : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"dec",b"dec"]) -> None: ... +global___DecProto = DecProto diff --git a/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi b/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi new file mode 100644 index 0000000..31aa72f --- /dev/null +++ b/pyband/proto/cosmos/base/v1beta1/coin_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .coin_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi new file mode 100644 index 0000000..f9db203 --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/capability_pb2.pyi @@ -0,0 +1,55 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Capability defines an implementation of an object capability. The index +# provided to a Capability must be globally unique. +class Capability(google.protobuf.message.Message): + 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[u"index",b"index"]) -> None: ... +global___Capability = Capability + +# Owner defines a single capability owner. An owner is defined by the name of +# capability and the module name. +class Owner(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + module: typing.Text = ... + name: typing.Text = ... + def __init__(self, + *, + module : typing.Text = ..., + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module",b"module",u"name",b"name"]) -> None: ... +global___Owner = Owner + +# CapabilityOwners defines a set of owners of a single Capability. The set of +# owners must be unique. +class CapabilityOwners(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___Owner]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"owners",b"owners"]) -> None: ... +global___CapabilityOwners = CapabilityOwners diff --git a/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi new file mode 100644 index 0000000..8fa6a5d --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/capability_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .capability_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..7183e2b --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2.pyi @@ -0,0 +1,51 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.capability.v1beta1.capability_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisOwners defines the capability owners with their corresponding index. +class GenesisOwners(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + INDEX_OWNERS_FIELD_NUMBER: builtins.int + # index is the index of the capability owner. + index: builtins.int = ... + # index_owners are the owners at the given index. + @property + def index_owners(self) -> cosmos.capability.v1beta1.capability_pb2.CapabilityOwners: ... + def __init__(self, + *, + index : builtins.int = ..., + index_owners : typing.Optional[cosmos.capability.v1beta1.capability_pb2.CapabilityOwners] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"index_owners",b"index_owners"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"index_owners",b"index_owners"]) -> None: ... +global___GenesisOwners = GenesisOwners + +# GenesisState defines the capability module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + OWNERS_FIELD_NUMBER: builtins.int + # index is the capability global index. + index: builtins.int = ... + # owners represents a map from index to owners of the capability index + # index key is string to allow amino marshalling. + @property + def owners(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisOwners]: ... + def __init__(self, + *, + index : builtins.int = ..., + owners : typing.Optional[typing.Iterable[global___GenesisOwners]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"owners",b"owners"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/capability/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..6921487 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2.pyi @@ -0,0 +1,28 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the crisis module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSTANT_FEE_FIELD_NUMBER: builtins.int + # constant_fee is the fee used to verify the invariant in the crisis + # module. + @property + def constant_fee(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + constant_fee : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"constant_fee",b"constant_fee"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..ff074f8 --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/tx_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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgVerifyInvariant represents a message to verify a particular invariance. +class MsgVerifyInvariant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SENDER_FIELD_NUMBER: builtins.int + INVARIANT_MODULE_NAME_FIELD_NUMBER: builtins.int + INVARIANT_ROUTE_FIELD_NUMBER: builtins.int + sender: typing.Text = ... + invariant_module_name: typing.Text = ... + invariant_route: typing.Text = ... + def __init__(self, + *, + sender : typing.Text = ..., + invariant_module_name : typing.Text = ..., + invariant_route : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"invariant_module_name",b"invariant_module_name",u"invariant_route",b"invariant_route",u"sender",b"sender"]) -> None: ... +global___MsgVerifyInvariant = MsgVerifyInvariant + +# MsgVerifyInvariantResponse defines the Msg/VerifyInvariant response type. +class MsgVerifyInvariantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVerifyInvariantResponse = MsgVerifyInvariantResponse diff --git a/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..87c35bc --- /dev/null +++ b/pyband/proto/cosmos/crisis/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # VerifyInvariant defines a method to verify a particular invariance. + VerifyInvariant:grpc.UnaryUnaryMultiCallable[ + global___MsgVerifyInvariant, + global___MsgVerifyInvariantResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # VerifyInvariant defines a method to verify a particular invariance. + @abc.abstractmethod + def VerifyInvariant(self, + request: global___MsgVerifyInvariant, + context: grpc.ServicerContext, + ) -> global___MsgVerifyInvariantResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2.pyi new file mode 100644 index 0000000..1e3152c --- /dev/null +++ b/pyband/proto/cosmos/crypto/ed25519/keys_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 typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class PubKey(google.protobuf.message.Message): + 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[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# Deprecated: PrivKey defines a ed25519 private key. +# NOTE: ed25519 keys must not be used in SDK apps except in a tendermint validator context. +class PrivKey(google.protobuf.message.Message): + 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[u"key",b"key"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/ed25519/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi new file mode 100644 index 0000000..36a6ff9 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/keys_pb2.pyi @@ -0,0 +1,31 @@ +""" +@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 = ... + +# LegacyAminoPubKey specifies a public key type +# which nests multiple public keys and a threshold, +# it uses legacy amino address rules. +class LegacyAminoPubKey(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"public_keys",b"public_keys",u"threshold",b"threshold"]) -> None: ... +global___LegacyAminoPubKey = LegacyAminoPubKey diff --git a/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2.pyi new file mode 100644 index 0000000..e4db3ce --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class MultiSignature(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... +global___MultiSignature = MultiSignature + +# 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. +class CompactBitArray(google.protobuf.message.Message): + 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[u"elems",b"elems",u"extra_bits_stored",b"extra_bits_stored"]) -> None: ... +global___CompactBitArray = CompactBitArray diff --git a/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi new file mode 100644 index 0000000..ff338b4 --- /dev/null +++ b/pyband/proto/cosmos/crypto/multisig/v1beta1/multisig_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .multisig_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi new file mode 100644 index 0000000..fd36261 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2.pyi @@ -0,0 +1,38 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class PubKey(google.protobuf.message.Message): + 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[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# PrivKey defines a secp256k1 private key. +class PrivKey(google.protobuf.message.Message): + 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[u"key",b"key"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256k1/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2.pyi new file mode 100644 index 0000000..1a4f8c7 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/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 typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PubKey defines a secp256r1 ECDSA public key. +class PubKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + # 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 + key: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key"]) -> None: ... +global___PubKey = PubKey + +# PrivKey defines a secp256r1 ECDSA private key. +class PrivKey(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SECRET_FIELD_NUMBER: builtins.int + # secret number serialized using big-endian encoding + secret: builtins.bytes = ... + def __init__(self, + *, + secret : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"secret",b"secret"]) -> None: ... +global___PrivKey = PrivKey diff --git a/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/cosmos/crypto/secp256r1/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi new file mode 100644 index 0000000..bbc8f5f --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2.pyi @@ -0,0 +1,240 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Params defines the set of params for the distribution module. +class Params(google.protobuf.message.Message): + 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: typing.Text = ... + base_proposer_reward: typing.Text = ... + bonus_proposer_reward: typing.Text = ... + withdraw_addr_enabled: builtins.bool = ... + def __init__(self, + *, + community_tax : typing.Text = ..., + base_proposer_reward : typing.Text = ..., + bonus_proposer_reward : typing.Text = ..., + withdraw_addr_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_proposer_reward",b"base_proposer_reward",u"bonus_proposer_reward",b"bonus_proposer_reward",u"community_tax",b"community_tax",u"withdraw_addr_enabled",b"withdraw_addr_enabled"]) -> None: ... +global___Params = Params + +# 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 +class ValidatorHistoricalRewards(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + reference_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"cumulative_reward_ratio",b"cumulative_reward_ratio",u"reference_count",b"reference_count"]) -> None: ... +global___ValidatorHistoricalRewards = ValidatorHistoricalRewards + +# 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. +class ValidatorCurrentRewards(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + period : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards"]) -> None: ... +global___ValidatorCurrentRewards = ValidatorCurrentRewards + +# ValidatorAccumulatedCommission represents accumulated commission +# for a validator kept as a running counter, can be withdrawn at any time. +class ValidatorAccumulatedCommission(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... +global___ValidatorAccumulatedCommission = ValidatorAccumulatedCommission + +# ValidatorOutstandingRewards represents outstanding (un-withdrawn) rewards +# for a validator inexpensive to track, allows simple sanity checks. +class ValidatorOutstandingRewards(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___ValidatorOutstandingRewards = ValidatorOutstandingRewards + +# 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. +class ValidatorSlashEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_PERIOD_FIELD_NUMBER: builtins.int + FRACTION_FIELD_NUMBER: builtins.int + validator_period: builtins.int = ... + fraction: typing.Text = ... + def __init__(self, + *, + validator_period : builtins.int = ..., + fraction : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fraction",b"fraction",u"validator_period",b"validator_period"]) -> None: ... +global___ValidatorSlashEvent = ValidatorSlashEvent + +# ValidatorSlashEvents is a collection of ValidatorSlashEvent messages. +class ValidatorSlashEvents(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___ValidatorSlashEvent]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_slash_events",b"validator_slash_events"]) -> None: ... +global___ValidatorSlashEvents = ValidatorSlashEvents + +# FeePool is the global fee pool for distribution. +class FeePool(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"community_pool",b"community_pool"]) -> None: ... +global___FeePool = FeePool + +# CommunityPoolSpendProposal details a proposal for use of community funds, +# together with how many coins are proposed to be spent, and to which +# recipient account. +class CommunityPoolSpendProposal(google.protobuf.message.Message): + 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: typing.Text = ... + description: typing.Text = ... + recipient: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + recipient : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... +global___CommunityPoolSpendProposal = CommunityPoolSpendProposal + +# 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. +class DelegatorStartingInfo(google.protobuf.message.Message): + 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: typing.Text = ... + height: builtins.int = ... + def __init__(self, + *, + previous_period : builtins.int = ..., + stake : typing.Text = ..., + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"previous_period",b"previous_period",u"stake",b"stake"]) -> None: ... +global___DelegatorStartingInfo = DelegatorStartingInfo + +# DelegationDelegatorReward represents the properties +# of a delegator's delegation reward. +class DelegationDelegatorReward(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARD_FIELD_NUMBER: builtins.int + validator_address: typing.Text = ... + @property + def reward(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + reward : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reward",b"reward",u"validator_address",b"validator_address"]) -> None: ... +global___DelegationDelegatorReward = DelegationDelegatorReward + +# CommunityPoolSpendProposalWithDeposit defines a CommunityPoolSpendProposal +# with a deposit +class CommunityPoolSpendProposalWithDeposit(google.protobuf.message.Message): + 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: typing.Text = ... + description: typing.Text = ... + recipient: typing.Text = ... + amount: typing.Text = ... + deposit: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + recipient : typing.Text = ..., + amount : typing.Text = ..., + deposit : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"deposit",b"deposit",u"description",b"description",u"recipient",b"recipient",u"title",b"title"]) -> None: ... +global___CommunityPoolSpendProposalWithDeposit = CommunityPoolSpendProposalWithDeposit diff --git a/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi new file mode 100644 index 0000000..2e709e7 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/distribution_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .distribution_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..81b4c3c --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2.pyi @@ -0,0 +1,223 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class DelegatorWithdrawInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address is the address of the delegator. + delegator_address: typing.Text = ... + # withdraw_address is the address to withdraw the delegation rewards to. + withdraw_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... +global___DelegatorWithdrawInfo = DelegatorWithdrawInfo + +# ValidatorOutstandingRewardsRecord is used for import/export via genesis json. +class ValidatorOutstandingRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + OUTSTANDING_REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # outstanding_rewards represents the oustanding rewards of a validator. + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + outstanding_rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"outstanding_rewards",b"outstanding_rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorOutstandingRewardsRecord = ValidatorOutstandingRewardsRecord + +# ValidatorAccumulatedCommissionRecord is used for import / export via genesis +# json. +class ValidatorAccumulatedCommissionRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ACCUMULATED_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # accumulated is the accumulated commission of a validator. + @property + def accumulated(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + accumulated : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"accumulated",b"accumulated",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorAccumulatedCommissionRecord = ValidatorAccumulatedCommissionRecord + +# ValidatorHistoricalRewardsRecord is used for import / export via genesis +# json. +class ValidatorHistoricalRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + PERIOD_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # period defines the period the historical rewards apply to. + period: builtins.int = ... + # rewards defines the historical rewards of a validator. + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + period : builtins.int = ..., + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorHistoricalRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"period",b"period",u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorHistoricalRewardsRecord = ValidatorHistoricalRewardsRecord + +# ValidatorCurrentRewardsRecord is used for import / export via genesis json. +class ValidatorCurrentRewardsRecord(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REWARDS_FIELD_NUMBER: builtins.int + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # rewards defines the current rewards of a validator. + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorCurrentRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"validator_address",b"validator_address"]) -> None: ... +global___ValidatorCurrentRewardsRecord = ValidatorCurrentRewardsRecord + +# DelegatorStartingInfoRecord used for import / export via genesis json. +class DelegatorStartingInfoRecord(google.protobuf.message.Message): + 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 is the address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the address of the validator. + validator_address: typing.Text = ... + # starting_info defines the starting info of a delegator. + @property + def starting_info(self) -> cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + starting_info : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.DelegatorStartingInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"starting_info",b"starting_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"starting_info",b"starting_info",u"validator_address",b"validator_address"]) -> None: ... +global___DelegatorStartingInfoRecord = DelegatorStartingInfoRecord + +# ValidatorSlashEventRecord is used for import / export via genesis json. +class ValidatorSlashEventRecord(google.protobuf.message.Message): + 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 is the address of the validator. + validator_address: typing.Text = ... + # height defines the block height at which the slash event occured. + height: builtins.int = ... + # period is the period of the slash event. + period: builtins.int = ... + # validator_slash_event describes the slash event. + @property + def validator_slash_event(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + height : builtins.int = ..., + period : builtins.int = ..., + validator_slash_event : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator_slash_event",b"validator_slash_event"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"period",b"period",u"validator_address",b"validator_address",u"validator_slash_event",b"validator_slash_event"]) -> None: ... +global___ValidatorSlashEventRecord = ValidatorSlashEventRecord + +# GenesisState defines the distribution module's genesis state. +class GenesisState(google.protobuf.message.Message): + 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 + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.distribution.v1beta1.distribution_pb2.Params: ... + # fee_pool defines the fee pool at genesis. + @property + def fee_pool(self) -> cosmos.distribution.v1beta1.distribution_pb2.FeePool: ... + # fee_pool defines the delegator withdraw infos at genesis. + @property + def delegator_withdraw_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorWithdrawInfo]: ... + # fee_pool defines the previous proposer at genesis. + previous_proposer: typing.Text = ... + # fee_pool defines the outstanding rewards of all validators at genesis. + @property + def outstanding_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorOutstandingRewardsRecord]: ... + # fee_pool defines the accumulated commisions of all validators at genesis. + @property + def validator_accumulated_commissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorAccumulatedCommissionRecord]: ... + # fee_pool defines the historical rewards of all validators at genesis. + @property + def validator_historical_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorHistoricalRewardsRecord]: ... + # fee_pool defines the current rewards of all validators at genesis. + @property + def validator_current_rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorCurrentRewardsRecord]: ... + # fee_pool defines the delegator starting infos at genesis. + @property + def delegator_starting_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___DelegatorStartingInfoRecord]: ... + # fee_pool defines the validator slash events at genesis. + @property + def validator_slash_events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorSlashEventRecord]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.Params] = ..., + fee_pool : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.FeePool] = ..., + delegator_withdraw_infos : typing.Optional[typing.Iterable[global___DelegatorWithdrawInfo]] = ..., + previous_proposer : typing.Text = ..., + outstanding_rewards : typing.Optional[typing.Iterable[global___ValidatorOutstandingRewardsRecord]] = ..., + validator_accumulated_commissions : typing.Optional[typing.Iterable[global___ValidatorAccumulatedCommissionRecord]] = ..., + validator_historical_rewards : typing.Optional[typing.Iterable[global___ValidatorHistoricalRewardsRecord]] = ..., + validator_current_rewards : typing.Optional[typing.Iterable[global___ValidatorCurrentRewardsRecord]] = ..., + delegator_starting_infos : typing.Optional[typing.Iterable[global___DelegatorStartingInfoRecord]] = ..., + validator_slash_events : typing.Optional[typing.Iterable[global___ValidatorSlashEventRecord]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"fee_pool",b"fee_pool",u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_starting_infos",b"delegator_starting_infos",u"delegator_withdraw_infos",b"delegator_withdraw_infos",u"fee_pool",b"fee_pool",u"outstanding_rewards",b"outstanding_rewards",u"params",b"params",u"previous_proposer",b"previous_proposer",u"validator_accumulated_commissions",b"validator_accumulated_commissions",u"validator_current_rewards",b"validator_current_rewards",u"validator_historical_rewards",b"validator_historical_rewards",u"validator_slash_events",b"validator_slash_events"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..964d1f5 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/query_pb2.pyi @@ -0,0 +1,292 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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.distribution.v1beta1.distribution_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.distribution.v1beta1.distribution_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 + +# QueryValidatorOutstandingRewardsRequest is the request type for the +# Query/ValidatorOutstandingRewards RPC method. +class QueryValidatorOutstandingRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorOutstandingRewardsRequest = QueryValidatorOutstandingRewardsRequest + +# QueryValidatorOutstandingRewardsResponse is the response type for the +# Query/ValidatorOutstandingRewards RPC method. +class QueryValidatorOutstandingRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + @property + def rewards(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards: ... + def __init__(self, + *, + rewards : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorOutstandingRewards] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___QueryValidatorOutstandingRewardsResponse = QueryValidatorOutstandingRewardsResponse + +# QueryValidatorCommissionRequest is the request type for the +# Query/ValidatorCommission RPC method +class QueryValidatorCommissionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorCommissionRequest = QueryValidatorCommissionRequest + +# QueryValidatorCommissionResponse is the response type for the +# Query/ValidatorCommission RPC method +class QueryValidatorCommissionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMISSION_FIELD_NUMBER: builtins.int + # commission defines the commision the validator received. + @property + def commission(self) -> cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission: ... + def __init__(self, + *, + commission : typing.Optional[cosmos.distribution.v1beta1.distribution_pb2.ValidatorAccumulatedCommission] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission"]) -> None: ... +global___QueryValidatorCommissionResponse = QueryValidatorCommissionResponse + +# QueryValidatorSlashesRequest is the request type for the +# Query/ValidatorSlashes RPC method +class QueryValidatorSlashesRequest(google.protobuf.message.Message): + 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 defines the validator address to query for. + validator_address: typing.Text = ... + # starting_height defines the optional starting height to query the slashes. + starting_height: builtins.int = ... + # starting_height defines the optional ending height to query the slashes. + ending_height: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_address : typing.Text = ..., + starting_height : builtins.int = ..., + ending_height : builtins.int = ..., + 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"ending_height",b"ending_height",u"pagination",b"pagination",u"starting_height",b"starting_height",u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorSlashesRequest = QueryValidatorSlashesRequest + +# QueryValidatorSlashesResponse is the response type for the +# Query/ValidatorSlashes RPC method. +class QueryValidatorSlashesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SLASHES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # slashes defines the slashes the validator received. + @property + def slashes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + slashes : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.ValidatorSlashEvent]] = ..., + 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"pagination",b"pagination",u"slashes",b"slashes"]) -> None: ... +global___QueryValidatorSlashesResponse = QueryValidatorSlashesResponse + +# QueryDelegationRewardsRequest is the request type for the +# Query/DelegationRewards RPC method. +class QueryDelegationRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + # validator_address defines the validator address to query for. + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___QueryDelegationRewardsRequest = QueryDelegationRewardsRequest + +# QueryDelegationRewardsResponse is the response type for the +# Query/DelegationRewards RPC method. +class QueryDelegationRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + # rewards defines the rewards accrued by a delegation. + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards"]) -> None: ... +global___QueryDelegationRewardsResponse = QueryDelegationRewardsResponse + +# QueryDelegationTotalRewardsRequest is the request type for the +# Query/DelegationTotalRewards RPC method. +class QueryDelegationTotalRewardsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegationTotalRewardsRequest = QueryDelegationTotalRewardsRequest + +# QueryDelegationTotalRewardsResponse is the response type for the +# Query/DelegationTotalRewards RPC method. +class QueryDelegationTotalRewardsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REWARDS_FIELD_NUMBER: builtins.int + TOTAL_FIELD_NUMBER: builtins.int + # rewards defines all the rewards accrued by a delegator. + @property + def rewards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]: ... + # total defines the sum of all the rewards. + @property + def total(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + rewards : typing.Optional[typing.Iterable[cosmos.distribution.v1beta1.distribution_pb2.DelegationDelegatorReward]] = ..., + total : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rewards",b"rewards",u"total",b"total"]) -> None: ... +global___QueryDelegationTotalRewardsResponse = QueryDelegationTotalRewardsResponse + +# QueryDelegatorValidatorsRequest is the request type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +# QueryDelegatorValidatorsResponse is the response type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + # validators defines the validators a delegator is delegating for. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +# QueryDelegatorWithdrawAddressRequest is the request type for the +# Query/DelegatorWithdrawAddress RPC method. +class QueryDelegatorWithdrawAddressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + # delegator_address defines the delegator address to query for. + delegator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address"]) -> None: ... +global___QueryDelegatorWithdrawAddressRequest = QueryDelegatorWithdrawAddressRequest + +# QueryDelegatorWithdrawAddressResponse is the response type for the +# Query/DelegatorWithdrawAddress RPC method. +class QueryDelegatorWithdrawAddressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + # withdraw_address defines the delegator address to query for. + withdraw_address: typing.Text = ... + def __init__(self, + *, + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"withdraw_address",b"withdraw_address"]) -> None: ... +global___QueryDelegatorWithdrawAddressResponse = QueryDelegatorWithdrawAddressResponse + +# QueryCommunityPoolRequest is the request type for the Query/CommunityPool RPC +# method. +class QueryCommunityPoolRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCommunityPoolRequest = QueryCommunityPoolRequest + +# QueryCommunityPoolResponse is the response type for the Query/CommunityPool +# RPC method. +class QueryCommunityPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + POOL_FIELD_NUMBER: builtins.int + # pool defines community pool's coins. + @property + def pool(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.DecCoin]: ... + def __init__(self, + *, + pool : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.DecCoin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... +global___QueryCommunityPoolResponse = QueryCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..a4230bb --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,126 @@ +""" +@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 for distribution module. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params queries params of the distribution module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # ValidatorOutstandingRewards queries rewards of a validator address. + ValidatorOutstandingRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorOutstandingRewardsRequest, + global___QueryValidatorOutstandingRewardsResponse] = ... + + # ValidatorCommission queries accumulated commission for a validator. + ValidatorCommission:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorCommissionRequest, + global___QueryValidatorCommissionResponse] = ... + + # ValidatorSlashes queries slash events of a validator. + ValidatorSlashes:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorSlashesRequest, + global___QueryValidatorSlashesResponse] = ... + + # DelegationRewards queries the total rewards accrued by a delegation. + DelegationRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationRewardsRequest, + global___QueryDelegationRewardsResponse] = ... + + # DelegationTotalRewards queries the total rewards accrued by a each + # validator. + DelegationTotalRewards:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationTotalRewardsRequest, + global___QueryDelegationTotalRewardsResponse] = ... + + # DelegatorValidators queries the validators of a delegator. + DelegatorValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorsRequest, + global___QueryDelegatorValidatorsResponse] = ... + + # DelegatorWithdrawAddress queries withdraw address of a delegator. + DelegatorWithdrawAddress:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorWithdrawAddressRequest, + global___QueryDelegatorWithdrawAddressResponse] = ... + + # CommunityPool queries the community pool coins. + CommunityPool:grpc.UnaryUnaryMultiCallable[ + global___QueryCommunityPoolRequest, + global___QueryCommunityPoolResponse] = ... + + +# Query defines the gRPC querier service for distribution module. +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries params of the distribution module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # ValidatorOutstandingRewards queries rewards of a validator address. + @abc.abstractmethod + def ValidatorOutstandingRewards(self, + request: global___QueryValidatorOutstandingRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorOutstandingRewardsResponse: ... + + # ValidatorCommission queries accumulated commission for a validator. + @abc.abstractmethod + def ValidatorCommission(self, + request: global___QueryValidatorCommissionRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorCommissionResponse: ... + + # ValidatorSlashes queries slash events of a validator. + @abc.abstractmethod + def ValidatorSlashes(self, + request: global___QueryValidatorSlashesRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorSlashesResponse: ... + + # DelegationRewards queries the total rewards accrued by a delegation. + @abc.abstractmethod + def DelegationRewards(self, + request: global___QueryDelegationRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationRewardsResponse: ... + + # DelegationTotalRewards queries the total rewards accrued by a each + # validator. + @abc.abstractmethod + def DelegationTotalRewards(self, + request: global___QueryDelegationTotalRewardsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationTotalRewardsResponse: ... + + # DelegatorValidators queries the validators of a delegator. + @abc.abstractmethod + def DelegatorValidators(self, + request: global___QueryDelegatorValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorsResponse: ... + + # DelegatorWithdrawAddress queries withdraw address of a delegator. + @abc.abstractmethod + def DelegatorWithdrawAddress(self, + request: global___QueryDelegatorWithdrawAddressRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorWithdrawAddressResponse: ... + + # CommunityPool queries the community pool coins. + @abc.abstractmethod + def CommunityPool(self, + request: global___QueryCommunityPoolRequest, + context: grpc.ServicerContext, + ) -> global___QueryCommunityPoolResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..ba8c0f8 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2.pyi @@ -0,0 +1,103 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSetWithdrawAddress sets the withdraw address for +# a delegator (or validator self-delegation). +class MsgSetWithdrawAddress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + WITHDRAW_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + withdraw_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + withdraw_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"withdraw_address",b"withdraw_address"]) -> None: ... +global___MsgSetWithdrawAddress = MsgSetWithdrawAddress + +# MsgSetWithdrawAddressResponse defines the Msg/SetWithdrawAddress response type. +class MsgSetWithdrawAddressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSetWithdrawAddressResponse = MsgSetWithdrawAddressResponse + +# MsgWithdrawDelegatorReward represents delegation withdrawal to a delegator +# from a single validator. +class MsgWithdrawDelegatorReward(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgWithdrawDelegatorReward = MsgWithdrawDelegatorReward + +# MsgWithdrawDelegatorRewardResponse defines the Msg/WithdrawDelegatorReward response type. +class MsgWithdrawDelegatorRewardResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgWithdrawDelegatorRewardResponse = MsgWithdrawDelegatorRewardResponse + +# MsgWithdrawValidatorCommission withdraws the full commission to the validator +# address. +class MsgWithdrawValidatorCommission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___MsgWithdrawValidatorCommission = MsgWithdrawValidatorCommission + +# MsgWithdrawValidatorCommissionResponse defines the Msg/WithdrawValidatorCommission response type. +class MsgWithdrawValidatorCommissionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgWithdrawValidatorCommissionResponse = MsgWithdrawValidatorCommissionResponse + +# MsgFundCommunityPool allows an account to directly +# fund the community pool. +class MsgFundCommunityPool(google.protobuf.message.Message): + 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: typing.Text = ... + def __init__(self, + *, + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + depositor : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor"]) -> None: ... +global___MsgFundCommunityPool = MsgFundCommunityPool + +# MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type. +class MsgFundCommunityPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgFundCommunityPoolResponse = MsgFundCommunityPoolResponse diff --git a/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..ae27a80 --- /dev/null +++ b/pyband/proto/cosmos/distribution/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,72 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the distribution Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SetWithdrawAddress defines a method to change the withdraw address + # for a delegator (or validator self-delegation). + SetWithdrawAddress:grpc.UnaryUnaryMultiCallable[ + global___MsgSetWithdrawAddress, + global___MsgSetWithdrawAddressResponse] = ... + + # WithdrawDelegatorReward defines a method to withdraw rewards of delegator + # from a single validator. + WithdrawDelegatorReward:grpc.UnaryUnaryMultiCallable[ + global___MsgWithdrawDelegatorReward, + global___MsgWithdrawDelegatorRewardResponse] = ... + + # WithdrawValidatorCommission defines a method to withdraw the + # full commission to the validator address. + WithdrawValidatorCommission:grpc.UnaryUnaryMultiCallable[ + global___MsgWithdrawValidatorCommission, + global___MsgWithdrawValidatorCommissionResponse] = ... + + # FundCommunityPool defines a method to allow an account to directly + # fund the community pool. + FundCommunityPool:grpc.UnaryUnaryMultiCallable[ + global___MsgFundCommunityPool, + global___MsgFundCommunityPoolResponse] = ... + + +# Msg defines the distribution Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SetWithdrawAddress defines a method to change the withdraw address + # for a delegator (or validator self-delegation). + @abc.abstractmethod + def SetWithdrawAddress(self, + request: global___MsgSetWithdrawAddress, + context: grpc.ServicerContext, + ) -> global___MsgSetWithdrawAddressResponse: ... + + # WithdrawDelegatorReward defines a method to withdraw rewards of delegator + # from a single validator. + @abc.abstractmethod + def WithdrawDelegatorReward(self, + request: global___MsgWithdrawDelegatorReward, + context: grpc.ServicerContext, + ) -> global___MsgWithdrawDelegatorRewardResponse: ... + + # WithdrawValidatorCommission defines a method to withdraw the + # full commission to the validator address. + @abc.abstractmethod + def WithdrawValidatorCommission(self, + request: global___MsgWithdrawValidatorCommission, + context: grpc.ServicerContext, + ) -> global___MsgWithdrawValidatorCommissionResponse: ... + + # FundCommunityPool defines a method to allow an account to directly + # fund the community pool. + @abc.abstractmethod + def FundCommunityPool(self, + request: global___MsgFundCommunityPool, + context: grpc.ServicerContext, + ) -> global___MsgFundCommunityPoolResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2.pyi new file mode 100644 index 0000000..10eb6ed --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/evidence_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 google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Equivocation implements the Evidence interface and defines evidence of double +# signing misbehavior. +class Equivocation(google.protobuf.message.Message): + 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 = ... + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + power: builtins.int = ... + consensus_address: typing.Text = ... + def __init__(self, + *, + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + power : builtins.int = ..., + consensus_address : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_address",b"consensus_address",u"height",b"height",u"power",b"power",u"time",b"time"]) -> None: ... +global___Equivocation = Equivocation diff --git a/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi new file mode 100644 index 0000000..f487a89 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/evidence_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..362696e --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2.pyi @@ -0,0 +1,27 @@ +""" +@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 = ... + +# GenesisState defines the evidence module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + # evidence defines all the evidence at genesis. + @property + def evidence(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + evidence : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..c87fc1b --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/query_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 = ... + +# QueryEvidenceRequest is the request type for the Query/Evidence RPC method. +class QueryEvidenceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_HASH_FIELD_NUMBER: builtins.int + # evidence_hash defines the hash of the requested evidence. + evidence_hash: builtins.bytes = ... + def __init__(self, + *, + evidence_hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence_hash",b"evidence_hash"]) -> None: ... +global___QueryEvidenceRequest = QueryEvidenceRequest + +# QueryEvidenceResponse is the response type for the Query/Evidence RPC method. +class QueryEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + # evidence returns the requested evidence. + @property + def evidence(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___QueryEvidenceResponse = QueryEvidenceResponse + +# QueryEvidenceRequest is the request type for the Query/AllEvidence RPC +# method. +class QueryAllEvidenceRequest(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___QueryAllEvidenceRequest = QueryAllEvidenceRequest + +# QueryAllEvidenceResponse is the response type for the Query/AllEvidence RPC +# method. +class QueryAllEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVIDENCE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # evidence returns all evidences. + @property + def evidence(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, + *, + evidence : 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"evidence",b"evidence",u"pagination",b"pagination"]) -> None: ... +global___QueryAllEvidenceResponse = QueryAllEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..dc000b4 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@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: ... + # Evidence queries evidence based on evidence hash. + Evidence:grpc.UnaryUnaryMultiCallable[ + global___QueryEvidenceRequest, + global___QueryEvidenceResponse] = ... + + # AllEvidence queries all evidence. + AllEvidence:grpc.UnaryUnaryMultiCallable[ + global___QueryAllEvidenceRequest, + global___QueryAllEvidenceResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Evidence queries evidence based on evidence hash. + @abc.abstractmethod + def Evidence(self, + request: global___QueryEvidenceRequest, + context: grpc.ServicerContext, + ) -> global___QueryEvidenceResponse: ... + + # AllEvidence queries all evidence. + @abc.abstractmethod + def AllEvidence(self, + request: global___QueryAllEvidenceRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllEvidenceResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..832a661 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2.pyi @@ -0,0 +1,43 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSubmitEvidence represents a message that supports submitting arbitrary +# Evidence of misbehavior such as equivocation or counterfactual signing. +class MsgSubmitEvidence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBMITTER_FIELD_NUMBER: builtins.int + EVIDENCE_FIELD_NUMBER: builtins.int + submitter: typing.Text = ... + @property + def evidence(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + submitter : typing.Text = ..., + evidence : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence",u"submitter",b"submitter"]) -> None: ... +global___MsgSubmitEvidence = MsgSubmitEvidence + +# MsgSubmitEvidenceResponse defines the Msg/SubmitEvidence response type. +class MsgSubmitEvidenceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash defines the hash of the evidence. + hash: builtins.bytes = ... + def __init__(self, + *, + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___MsgSubmitEvidenceResponse = MsgSubmitEvidenceResponse diff --git a/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..6330fa4 --- /dev/null +++ b/pyband/proto/cosmos/evidence/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the evidence Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or + # counterfactual signing. + SubmitEvidence:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitEvidence, + global___MsgSubmitEvidenceResponse] = ... + + +# Msg defines the evidence Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SubmitEvidence submits an arbitrary Evidence of misbehavior such as equivocation or + # counterfactual signing. + @abc.abstractmethod + def SubmitEvidence(self, + request: global___MsgSubmitEvidence, + context: grpc.ServicerContext, + ) -> global___MsgSubmitEvidenceResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi new file mode 100644 index 0000000..45a808e --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2.pyi @@ -0,0 +1,122 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BasicAllowance implements Allowance with a one-time grant of tokens +# that optionally expires. The grantee can use up to SpendLimit to cover fees. +class BasicAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SPEND_LIMIT_FIELD_NUMBER: builtins.int + EXPIRATION_FIELD_NUMBER: builtins.int + # spend_limit specifies the maximum amount of tokens that can be spent + # by this allowance and will be updated as tokens are spent. If it is + # empty, there is no spend limit and any amount of coins can be spent. + @property + def spend_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # expiration specifies an optional time when this allowance expires + @property + def expiration(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + expiration : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"expiration",b"expiration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"expiration",b"expiration",u"spend_limit",b"spend_limit"]) -> None: ... +global___BasicAllowance = BasicAllowance + +# PeriodicAllowance extends Allowance to allow for both a maximum cap, +# as well as a limit per time period. +class PeriodicAllowance(google.protobuf.message.Message): + 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 + # basic specifies a struct of `BasicAllowance` + @property + def basic(self) -> global___BasicAllowance: ... + # period specifies the time duration in which period_spend_limit coins can + # be spent before that allowance is reset + @property + def period(self) -> google.protobuf.duration_pb2.Duration: ... + # period_spend_limit specifies the maximum number of coins that can be spent + # in the period + @property + def period_spend_limit(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_can_spend(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # 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 + @property + def period_reset(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + basic : typing.Optional[global___BasicAllowance] = ..., + period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + period_spend_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + period_can_spend : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + period_reset : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"basic",b"basic",u"period",b"period",u"period_reset",b"period_reset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"basic",b"basic",u"period",b"period",u"period_can_spend",b"period_can_spend",u"period_reset",b"period_reset",u"period_spend_limit",b"period_spend_limit"]) -> None: ... +global___PeriodicAllowance = PeriodicAllowance + +# AllowedMsgAllowance creates allowance only for specified message types. +class AllowedMsgAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCE_FIELD_NUMBER: builtins.int + ALLOWED_MESSAGES_FIELD_NUMBER: builtins.int + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + # allowed_messages are the messages for which the grantee has the access. + @property + def allowed_messages(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + allowed_messages : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"allowed_messages",b"allowed_messages"]) -> None: ... +global___AllowedMsgAllowance = AllowedMsgAllowance + +# Grant is stored in the KVStore to record a grant with full context +class Grant(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___Grant = Grant diff --git a/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi new file mode 100644 index 0000000..90710ce --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/feegrant_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .feegrant_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..c6a8df6 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.feegrant.v1beta1.feegrant_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 contains a set of fee allowances, persisted from the store +class GenesisState(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowances",b"allowances"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..e617bed --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2.pyi @@ -0,0 +1,84 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryAllowanceRequest is the request type for the Query/Allowance RPC method. +class QueryAllowanceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___QueryAllowanceRequest = QueryAllowanceRequest + +# QueryAllowanceResponse is the response type for the Query/Allowance RPC method. +class QueryAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCE_FIELD_NUMBER: builtins.int + # allowance is a allowance granted for grantee by granter. + @property + def allowance(self) -> cosmos.feegrant.v1beta1.feegrant_pb2.Grant: ... + def __init__(self, + *, + allowance : typing.Optional[cosmos.feegrant.v1beta1.feegrant_pb2.Grant] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> None: ... +global___QueryAllowanceResponse = QueryAllowanceResponse + +# QueryAllowancesRequest is the request type for the Query/Allowances RPC method. +class QueryAllowancesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTEE_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + grantee: typing.Text = ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + grantee : typing.Text = ..., + 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"grantee",b"grantee",u"pagination",b"pagination"]) -> None: ... +global___QueryAllowancesRequest = QueryAllowancesRequest + +# QueryAllowancesResponse is the response type for the Query/Allowances RPC method. +class QueryAllowancesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWANCES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # allowances are allowance's granted for grantee by granter. + @property + def allowances(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + allowances : typing.Optional[typing.Iterable[cosmos.feegrant.v1beta1.feegrant_pb2.Grant]] = ..., + 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"allowances",b"allowances",u"pagination",b"pagination"]) -> None: ... +global___QueryAllowancesResponse = QueryAllowancesResponse diff --git a/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..f6bab0f --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,40 @@ +""" +@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: ... + # Allowance returns fee granted to the grantee by the granter. + Allowance:grpc.UnaryUnaryMultiCallable[ + global___QueryAllowanceRequest, + global___QueryAllowanceResponse] = ... + + # Allowances returns all the grants for address. + Allowances:grpc.UnaryUnaryMultiCallable[ + global___QueryAllowancesRequest, + global___QueryAllowancesResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Allowance returns fee granted to the grantee by the granter. + @abc.abstractmethod + def Allowance(self, + request: global___QueryAllowanceRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllowanceResponse: ... + + # Allowances returns all the grants for address. + @abc.abstractmethod + def Allowances(self, + request: global___QueryAllowancesRequest, + context: grpc.ServicerContext, + ) -> global___QueryAllowancesResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..cdb57b9 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2.pyi @@ -0,0 +1,67 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgGrantAllowance adds permission for Grantee to spend up to Allowance +# of fees from the account of Granter. +class MsgGrantAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + ALLOWANCE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + # allowance can be any of basic and filtered fee allowance. + @property + def allowance(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + allowance : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowance",b"allowance",u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgGrantAllowance = MsgGrantAllowance + +# MsgGrantAllowanceResponse defines the Msg/GrantAllowanceResponse response type. +class MsgGrantAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgGrantAllowanceResponse = MsgGrantAllowanceResponse + +# MsgRevokeAllowance removes any existing Allowance from Granter to Grantee. +class MsgRevokeAllowance(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GRANTER_FIELD_NUMBER: builtins.int + GRANTEE_FIELD_NUMBER: builtins.int + # granter is the address of the user granting an allowance of their funds. + granter: typing.Text = ... + # grantee is the address of the user being granted an allowance of another user's funds. + grantee: typing.Text = ... + def __init__(self, + *, + granter : typing.Text = ..., + grantee : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"grantee",b"grantee",u"granter",b"granter"]) -> None: ... +global___MsgRevokeAllowance = MsgRevokeAllowance + +# MsgRevokeAllowanceResponse defines the Msg/RevokeAllowanceResponse response type. +class MsgRevokeAllowanceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRevokeAllowanceResponse = MsgRevokeAllowanceResponse diff --git a/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..75577b3 --- /dev/null +++ b/pyband/proto/cosmos/feegrant/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the feegrant msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # GrantAllowance grants fee allowance to the grantee on the granter's + # account with the provided expiration time. + GrantAllowance:grpc.UnaryUnaryMultiCallable[ + global___MsgGrantAllowance, + global___MsgGrantAllowanceResponse] = ... + + # RevokeAllowance revokes any fee allowance of granter's account that + # has been granted to the grantee. + RevokeAllowance:grpc.UnaryUnaryMultiCallable[ + global___MsgRevokeAllowance, + global___MsgRevokeAllowanceResponse] = ... + + +# Msg defines the feegrant msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # GrantAllowance grants fee allowance to the grantee on the granter's + # account with the provided expiration time. + @abc.abstractmethod + def GrantAllowance(self, + request: global___MsgGrantAllowance, + context: grpc.ServicerContext, + ) -> global___MsgGrantAllowanceResponse: ... + + # RevokeAllowance revokes any fee allowance of granter's account that + # has been granted to the grantee. + @abc.abstractmethod + def RevokeAllowance(self, + request: global___MsgRevokeAllowance, + context: grpc.ServicerContext, + ) -> global___MsgRevokeAllowanceResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..6cf44fa --- /dev/null +++ b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2.pyi @@ -0,0 +1,26 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 raw genesis transaction in JSON. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GEN_TXS_FIELD_NUMBER: builtins.int + # gen_txs defines the genesis transactions. + @property + def gen_txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + gen_txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gen_txs",b"gen_txs"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/genutil/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..0a83d29 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2.pyi @@ -0,0 +1,57 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.gov.v1beta1.gov_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 gov module's genesis state. +class GenesisState(google.protobuf.message.Message): + 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 is the ID of the starting proposal. + starting_proposal_id: builtins.int = ... + # deposits defines all the deposits present at genesis. + @property + def deposits(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Deposit]: ... + # votes defines all the votes present at genesis. + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... + # proposals defines all the proposals present at genesis. + @property + def proposals(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Proposal]: ... + # params defines all the paramaters of related to deposit. + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... + # params defines all the paramaters of related to voting. + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... + # params defines all the paramaters of related to tally. + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... + def __init__(self, + *, + starting_proposal_id : builtins.int = ..., + deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., + votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., + proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., + deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., + voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., + tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"deposits",b"deposits",u"proposals",b"proposals",u"starting_proposal_id",b"starting_proposal_id",u"tally_params",b"tally_params",u"votes",b"votes",u"voting_params",b"voting_params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi new file mode 100644 index 0000000..78dc990 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/gov_pb2.pyi @@ -0,0 +1,294 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# VoteOption enumerates the valid vote options for a given governance proposal. +class VoteOption(_VoteOption, metaclass=_VoteOptionEnumTypeWrapper): + pass +class _VoteOption: + V = typing.NewType('V', builtins.int) +class _VoteOptionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VoteOption.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # VOTE_OPTION_UNSPECIFIED defines a no-op vote option. + VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) + # VOTE_OPTION_YES defines a yes vote option. + VOTE_OPTION_YES = VoteOption.V(1) + # VOTE_OPTION_ABSTAIN defines an abstain vote option. + VOTE_OPTION_ABSTAIN = VoteOption.V(2) + # VOTE_OPTION_NO defines a no vote option. + VOTE_OPTION_NO = VoteOption.V(3) + # VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. + VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) + +# VOTE_OPTION_UNSPECIFIED defines a no-op vote option. +VOTE_OPTION_UNSPECIFIED = VoteOption.V(0) +# VOTE_OPTION_YES defines a yes vote option. +VOTE_OPTION_YES = VoteOption.V(1) +# VOTE_OPTION_ABSTAIN defines an abstain vote option. +VOTE_OPTION_ABSTAIN = VoteOption.V(2) +# VOTE_OPTION_NO defines a no vote option. +VOTE_OPTION_NO = VoteOption.V(3) +# VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option. +VOTE_OPTION_NO_WITH_VETO = VoteOption.V(4) +global___VoteOption = VoteOption + + +# ProposalStatus enumerates the valid statuses of a proposal. +class ProposalStatus(_ProposalStatus, metaclass=_ProposalStatusEnumTypeWrapper): + pass +class _ProposalStatus: + V = typing.NewType('V', builtins.int) +class _ProposalStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ProposalStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. + PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) + # PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit + # period. + PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) + # PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting + # period. + PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) + # PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has + # passed. + PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) + # PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has + # been rejected. + PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) + # PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has + # failed. + PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) + +# PROPOSAL_STATUS_UNSPECIFIED defines the default propopsal status. +PROPOSAL_STATUS_UNSPECIFIED = ProposalStatus.V(0) +# PROPOSAL_STATUS_DEPOSIT_PERIOD defines a proposal status during the deposit +# period. +PROPOSAL_STATUS_DEPOSIT_PERIOD = ProposalStatus.V(1) +# PROPOSAL_STATUS_VOTING_PERIOD defines a proposal status during the voting +# period. +PROPOSAL_STATUS_VOTING_PERIOD = ProposalStatus.V(2) +# PROPOSAL_STATUS_PASSED defines a proposal status of a proposal that has +# passed. +PROPOSAL_STATUS_PASSED = ProposalStatus.V(3) +# PROPOSAL_STATUS_REJECTED defines a proposal status of a proposal that has +# been rejected. +PROPOSAL_STATUS_REJECTED = ProposalStatus.V(4) +# PROPOSAL_STATUS_FAILED defines a proposal status of a proposal that has +# failed. +PROPOSAL_STATUS_FAILED = ProposalStatus.V(5) +global___ProposalStatus = ProposalStatus + + +# WeightedVoteOption defines a unit of vote for vote split. +class WeightedVoteOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OPTION_FIELD_NUMBER: builtins.int + WEIGHT_FIELD_NUMBER: builtins.int + option: global___VoteOption.V = ... + weight: typing.Text = ... + def __init__(self, + *, + option : global___VoteOption.V = ..., + weight : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"weight",b"weight"]) -> None: ... +global___WeightedVoteOption = WeightedVoteOption + +# TextProposal defines a standard text proposal whose changes need to be +# manually updated in case of approval. +class TextProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... +global___TextProposal = TextProposal + +# Deposit defines an amount deposited by an account address to an active +# proposal. +class Deposit(google.protobuf.message.Message): + 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 = ... + depositor: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___Deposit = Deposit + +# Proposal defines the core field members of a governance proposal. +class Proposal(google.protobuf.message.Message): + 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 = ... + @property + def content(self) -> google.protobuf.any_pb2.Any: ... + status: global___ProposalStatus.V = ... + @property + def final_tally_result(self) -> global___TallyResult: ... + @property + def submit_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def deposit_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def total_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + @property + def voting_start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def voting_end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + content : typing.Optional[google.protobuf.any_pb2.Any] = ..., + status : global___ProposalStatus.V = ..., + final_tally_result : typing.Optional[global___TallyResult] = ..., + submit_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + deposit_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + total_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + voting_start_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + voting_end_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"submit_time",b"submit_time",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"deposit_end_time",b"deposit_end_time",u"final_tally_result",b"final_tally_result",u"proposal_id",b"proposal_id",u"status",b"status",u"submit_time",b"submit_time",u"total_deposit",b"total_deposit",u"voting_end_time",b"voting_end_time",u"voting_start_time",b"voting_start_time"]) -> None: ... +global___Proposal = Proposal + +# TallyResult defines a standard tally for a governance proposal. +class TallyResult(google.protobuf.message.Message): + 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: typing.Text = ... + abstain: typing.Text = ... + no: typing.Text = ... + no_with_veto: typing.Text = ... + def __init__(self, + *, + yes : typing.Text = ..., + abstain : typing.Text = ..., + no : typing.Text = ..., + no_with_veto : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"abstain",b"abstain",u"no",b"no",u"no_with_veto",b"no_with_veto",u"yes",b"yes"]) -> None: ... +global___TallyResult = TallyResult + +# Vote defines a vote on a governance proposal. +# A Vote consists of a proposal ID, the voter, and the vote option. +class Vote(google.protobuf.message.Message): + 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 = ... + voter: typing.Text = ... + # 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. + option: global___VoteOption.V = ... + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___WeightedVoteOption]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + option : global___VoteOption.V = ..., + options : typing.Optional[typing.Iterable[global___WeightedVoteOption]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"options",b"options",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___Vote = Vote + +# DepositParams defines the params for deposits on governance proposals. +class DepositParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MIN_DEPOSIT_FIELD_NUMBER: builtins.int + MAX_DEPOSIT_PERIOD_FIELD_NUMBER: builtins.int + # Minimum deposit for a proposal to enter voting period. + @property + def min_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Maximum period for Atom holders to deposit on a proposal. Initial value: 2 + # months. + @property + def max_deposit_period(self) -> google.protobuf.duration_pb2.Duration: ... + def __init__(self, + *, + min_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + max_deposit_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_deposit_period",b"max_deposit_period",u"min_deposit",b"min_deposit"]) -> None: ... +global___DepositParams = DepositParams + +# VotingParams defines the params for voting on governance proposals. +class VotingParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTING_PERIOD_FIELD_NUMBER: builtins.int + # Length of the voting period. + @property + def voting_period(self) -> google.protobuf.duration_pb2.Duration: ... + def __init__(self, + *, + voting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"voting_period",b"voting_period"]) -> None: ... +global___VotingParams = VotingParams + +# TallyParams defines the params for tallying votes on governance proposals. +class TallyParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + QUORUM_FIELD_NUMBER: builtins.int + THRESHOLD_FIELD_NUMBER: builtins.int + VETO_THRESHOLD_FIELD_NUMBER: builtins.int + # Minimum percentage of total stake needed to vote for a result to be + # considered valid. + quorum: builtins.bytes = ... + # Minimum proportion of Yes votes for proposal to pass. Default value: 0.5. + threshold: builtins.bytes = ... + # Minimum value of Veto votes to Total votes ratio for proposal to be + # vetoed. Default value: 1/3. + veto_threshold: builtins.bytes = ... + def __init__(self, + *, + quorum : builtins.bytes = ..., + threshold : builtins.bytes = ..., + veto_threshold : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"quorum",b"quorum",u"threshold",b"threshold",u"veto_threshold",b"veto_threshold"]) -> None: ... +global___TallyParams = TallyParams diff --git a/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi new file mode 100644 index 0000000..2b57cd3 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/gov_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .gov_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..8104e25 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/query_pb2.pyi @@ -0,0 +1,296 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryProposalRequest is the request type for the Query/Proposal RPC method. +class QueryProposalRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryProposalRequest = QueryProposalRequest + +# QueryProposalResponse is the response type for the Query/Proposal RPC method. +class QueryProposalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_FIELD_NUMBER: builtins.int + @property + def proposal(self) -> cosmos.gov.v1beta1.gov_pb2.Proposal: ... + def __init__(self, + *, + proposal : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Proposal] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal",b"proposal"]) -> None: ... +global___QueryProposalResponse = QueryProposalResponse + +# QueryProposalsRequest is the request type for the Query/Proposals RPC method. +class QueryProposalsRequest(google.protobuf.message.Message): + 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 defines the status of the proposals. + proposal_status: cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ... + # voter defines the voter address for the proposals. + voter: typing.Text = ... + # depositor defines the deposit addresses from the proposals. + depositor: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_status : cosmos.gov.v1beta1.gov_pb2.ProposalStatus.V = ..., + voter : typing.Text = ..., + depositor : typing.Text = ..., + 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"depositor",b"depositor",u"pagination",b"pagination",u"proposal_status",b"proposal_status",u"voter",b"voter"]) -> None: ... +global___QueryProposalsRequest = QueryProposalsRequest + +# QueryProposalsResponse is the response type for the Query/Proposals RPC +# method. +class QueryProposalsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + proposals : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Proposal]] = ..., + 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"pagination",b"pagination",u"proposals",b"proposals"]) -> None: ... +global___QueryProposalsResponse = QueryProposalsResponse + +# QueryVoteRequest is the request type for the Query/Vote RPC method. +class QueryVoteRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + VOTER_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # voter defines the oter address for the proposals. + voter: typing.Text = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___QueryVoteRequest = QueryVoteRequest + +# QueryVoteResponse is the response type for the Query/Vote RPC method. +class QueryVoteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTE_FIELD_NUMBER: builtins.int + # vote defined the queried vote. + @property + def vote(self) -> cosmos.gov.v1beta1.gov_pb2.Vote: ... + def __init__(self, + *, + vote : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Vote] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"vote",b"vote"]) -> None: ... +global___QueryVoteResponse = QueryVoteResponse + +# QueryVotesRequest is the request type for the Query/Votes RPC method. +class QueryVotesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + 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",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryVotesRequest = QueryVotesRequest + +# QueryVotesResponse is the response type for the Query/Votes RPC method. +class QueryVotesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VOTES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # votes defined the queried votes. + @property + def votes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.Vote]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + votes : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Vote]] = ..., + 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"pagination",b"pagination",u"votes",b"votes"]) -> None: ... +global___QueryVotesResponse = QueryVotesResponse + +# QueryParamsRequest is the request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_TYPE_FIELD_NUMBER: builtins.int + # params_type defines which parameters to query for, can be one of "voting", + # "tallying" or "deposit". + params_type: typing.Text = ... + def __init__(self, + *, + params_type : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"params_type",b"params_type"]) -> 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 = ... + VOTING_PARAMS_FIELD_NUMBER: builtins.int + DEPOSIT_PARAMS_FIELD_NUMBER: builtins.int + TALLY_PARAMS_FIELD_NUMBER: builtins.int + # voting_params defines the parameters related to voting. + @property + def voting_params(self) -> cosmos.gov.v1beta1.gov_pb2.VotingParams: ... + # deposit_params defines the parameters related to deposit. + @property + def deposit_params(self) -> cosmos.gov.v1beta1.gov_pb2.DepositParams: ... + # tally_params defines the parameters related to tally. + @property + def tally_params(self) -> cosmos.gov.v1beta1.gov_pb2.TallyParams: ... + def __init__(self, + *, + voting_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.VotingParams] = ..., + deposit_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.DepositParams] = ..., + tally_params : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit_params",b"deposit_params",u"tally_params",b"tally_params",u"voting_params",b"voting_params"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse + +# QueryDepositRequest is the request type for the Query/Deposit RPC method. +class QueryDepositRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + DEPOSITOR_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # depositor defines the deposit addresses from the proposals. + depositor: typing.Text = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryDepositRequest = QueryDepositRequest + +# QueryDepositResponse is the response type for the Query/Deposit RPC method. +class QueryDepositResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DEPOSIT_FIELD_NUMBER: builtins.int + # deposit defines the requested deposit. + @property + def deposit(self) -> cosmos.gov.v1beta1.gov_pb2.Deposit: ... + def __init__(self, + *, + deposit : typing.Optional[cosmos.gov.v1beta1.gov_pb2.Deposit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"deposit",b"deposit"]) -> None: ... +global___QueryDepositResponse = QueryDepositResponse + +# QueryDepositsRequest is the request type for the Query/Deposits RPC method. +class QueryDepositsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + 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",u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryDepositsRequest = QueryDepositsRequest + +# QueryDepositsResponse is the response type for the Query/Deposits RPC method. +class QueryDepositsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + deposits : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.Deposit]] = ..., + 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"deposits",b"deposits",u"pagination",b"pagination"]) -> None: ... +global___QueryDepositsResponse = QueryDepositsResponse + +# QueryTallyResultRequest is the request type for the Query/Tally RPC method. +class QueryTallyResultRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + # proposal_id defines the unique id of the proposal. + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___QueryTallyResultRequest = QueryTallyResultRequest + +# QueryTallyResultResponse is the response type for the Query/Tally RPC method. +class QueryTallyResultResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TALLY_FIELD_NUMBER: builtins.int + # tally defines the requested tally. + @property + def tally(self) -> cosmos.gov.v1beta1.gov_pb2.TallyResult: ... + def __init__(self, + *, + tally : typing.Optional[cosmos.gov.v1beta1.gov_pb2.TallyResult] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tally",b"tally"]) -> None: ... +global___QueryTallyResultResponse = QueryTallyResultResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..0577193 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,112 @@ +""" +@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 for gov module +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Proposal queries proposal details based on ProposalID. + Proposal:grpc.UnaryUnaryMultiCallable[ + global___QueryProposalRequest, + global___QueryProposalResponse] = ... + + # Proposals queries all proposals based on given status. + Proposals:grpc.UnaryUnaryMultiCallable[ + global___QueryProposalsRequest, + global___QueryProposalsResponse] = ... + + # Vote queries voted information based on proposalID, voterAddr. + Vote:grpc.UnaryUnaryMultiCallable[ + global___QueryVoteRequest, + global___QueryVoteResponse] = ... + + # Votes queries votes of a given proposal. + Votes:grpc.UnaryUnaryMultiCallable[ + global___QueryVotesRequest, + global___QueryVotesResponse] = ... + + # Params queries all parameters of the gov module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # Deposit queries single deposit information based proposalID, depositAddr. + Deposit:grpc.UnaryUnaryMultiCallable[ + global___QueryDepositRequest, + global___QueryDepositResponse] = ... + + # Deposits queries all deposits of a single proposal. + Deposits:grpc.UnaryUnaryMultiCallable[ + global___QueryDepositsRequest, + global___QueryDepositsResponse] = ... + + # TallyResult queries the tally of a proposal vote. + TallyResult:grpc.UnaryUnaryMultiCallable[ + global___QueryTallyResultRequest, + global___QueryTallyResultResponse] = ... + + +# Query defines the gRPC querier service for gov module +class QueryServicer(metaclass=abc.ABCMeta): + # Proposal queries proposal details based on ProposalID. + @abc.abstractmethod + def Proposal(self, + request: global___QueryProposalRequest, + context: grpc.ServicerContext, + ) -> global___QueryProposalResponse: ... + + # Proposals queries all proposals based on given status. + @abc.abstractmethod + def Proposals(self, + request: global___QueryProposalsRequest, + context: grpc.ServicerContext, + ) -> global___QueryProposalsResponse: ... + + # Vote queries voted information based on proposalID, voterAddr. + @abc.abstractmethod + def Vote(self, + request: global___QueryVoteRequest, + context: grpc.ServicerContext, + ) -> global___QueryVoteResponse: ... + + # Votes queries votes of a given proposal. + @abc.abstractmethod + def Votes(self, + request: global___QueryVotesRequest, + context: grpc.ServicerContext, + ) -> global___QueryVotesResponse: ... + + # Params queries all parameters of the gov module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # Deposit queries single deposit information based proposalID, depositAddr. + @abc.abstractmethod + def Deposit(self, + request: global___QueryDepositRequest, + context: grpc.ServicerContext, + ) -> global___QueryDepositResponse: ... + + # Deposits queries all deposits of a single proposal. + @abc.abstractmethod + def Deposits(self, + request: global___QueryDepositsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDepositsResponse: ... + + # TallyResult queries the tally of a proposal vote. + @abc.abstractmethod + def TallyResult(self, + request: global___QueryTallyResultRequest, + context: grpc.ServicerContext, + ) -> global___QueryTallyResultResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..d5f7bbd --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2.pyi @@ -0,0 +1,126 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgSubmitProposal defines an sdk.Msg type that supports submitting arbitrary +# proposal Content. +class MsgSubmitProposal(google.protobuf.message.Message): + 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: ... + @property + def initial_deposit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + proposer: typing.Text = ... + def __init__(self, + *, + content : typing.Optional[google.protobuf.any_pb2.Any] = ..., + initial_deposit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + proposer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"content",b"content"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content",b"content",u"initial_deposit",b"initial_deposit",u"proposer",b"proposer"]) -> None: ... +global___MsgSubmitProposal = MsgSubmitProposal + +# MsgSubmitProposalResponse defines the Msg/SubmitProposal response type. +class MsgSubmitProposalResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROPOSAL_ID_FIELD_NUMBER: builtins.int + proposal_id: builtins.int = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposal_id",b"proposal_id"]) -> None: ... +global___MsgSubmitProposalResponse = MsgSubmitProposalResponse + +# MsgVote defines a message to cast a vote. +class MsgVote(google.protobuf.message.Message): + 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 = ... + voter: typing.Text = ... + option: cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + option : cosmos.gov.v1beta1.gov_pb2.VoteOption.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"option",b"option",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___MsgVote = MsgVote + +# MsgVoteResponse defines the Msg/Vote response type. +class MsgVoteResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVoteResponse = MsgVoteResponse + +# MsgVoteWeighted defines a message to cast a vote. +class MsgVoteWeighted(google.protobuf.message.Message): + 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 = ... + voter: typing.Text = ... + @property + def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + voter : typing.Text = ..., + options : typing.Optional[typing.Iterable[cosmos.gov.v1beta1.gov_pb2.WeightedVoteOption]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"options",b"options",u"proposal_id",b"proposal_id",u"voter",b"voter"]) -> None: ... +global___MsgVoteWeighted = MsgVoteWeighted + +# MsgVoteWeightedResponse defines the Msg/VoteWeighted response type. +class MsgVoteWeightedResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgVoteWeightedResponse = MsgVoteWeightedResponse + +# MsgDeposit defines a message to submit a deposit to an existing proposal. +class MsgDeposit(google.protobuf.message.Message): + 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 = ... + depositor: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + proposal_id : builtins.int = ..., + depositor : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"depositor",b"depositor",u"proposal_id",b"proposal_id"]) -> None: ... +global___MsgDeposit = MsgDeposit + +# MsgDepositResponse defines the Msg/Deposit response type. +class MsgDepositResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgDepositResponse = MsgDepositResponse diff --git a/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..8602594 --- /dev/null +++ b/pyband/proto/cosmos/gov/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # SubmitProposal defines a method to create new proposal given a content. + SubmitProposal:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitProposal, + global___MsgSubmitProposalResponse] = ... + + # Vote defines a method to add a vote on a specific proposal. + Vote:grpc.UnaryUnaryMultiCallable[ + global___MsgVote, + global___MsgVoteResponse] = ... + + # VoteWeighted defines a method to add a weighted vote on a specific proposal. + VoteWeighted:grpc.UnaryUnaryMultiCallable[ + global___MsgVoteWeighted, + global___MsgVoteWeightedResponse] = ... + + # Deposit defines a method to add deposit on a specific proposal. + Deposit:grpc.UnaryUnaryMultiCallable[ + global___MsgDeposit, + global___MsgDepositResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # SubmitProposal defines a method to create new proposal given a content. + @abc.abstractmethod + def SubmitProposal(self, + request: global___MsgSubmitProposal, + context: grpc.ServicerContext, + ) -> global___MsgSubmitProposalResponse: ... + + # Vote defines a method to add a vote on a specific proposal. + @abc.abstractmethod + def Vote(self, + request: global___MsgVote, + context: grpc.ServicerContext, + ) -> global___MsgVoteResponse: ... + + # VoteWeighted defines a method to add a weighted vote on a specific proposal. + @abc.abstractmethod + def VoteWeighted(self, + request: global___MsgVoteWeighted, + context: grpc.ServicerContext, + ) -> global___MsgVoteWeightedResponse: ... + + # Deposit defines a method to add deposit on a specific proposal. + @abc.abstractmethod + def Deposit(self, + request: global___MsgDeposit, + context: grpc.ServicerContext, + ) -> global___MsgDepositResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..3b784d2 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2.pyi @@ -0,0 +1,32 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the mint module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MINTER_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + # minter is a space for holding current inflation information. + @property + def minter(self) -> cosmos.mint.v1beta1.mint_pb2.Minter: ... + # params defines all the paramaters of the module. + @property + def params(self) -> cosmos.mint.v1beta1.mint_pb2.Params: ... + def __init__(self, + *, + minter : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Minter] = ..., + params : typing.Optional[cosmos.mint.v1beta1.mint_pb2.Params] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"minter",b"minter",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2.pyi new file mode 100644 index 0000000..3a8c3b8 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/mint_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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Minter represents the minting state. +class Minter(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFLATION_FIELD_NUMBER: builtins.int + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + # current annual inflation rate + inflation: typing.Text = ... + # current annual expected provisions + annual_provisions: typing.Text = ... + def __init__(self, + *, + inflation : typing.Text = ..., + annual_provisions : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions",u"inflation",b"inflation"]) -> None: ... +global___Minter = Minter + +# Params holds parameters for the mint module. +class Params(google.protobuf.message.Message): + 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 + # type of coin to mint + mint_denom: typing.Text = ... + # maximum annual change in inflation rate + inflation_rate_change: typing.Text = ... + # maximum inflation rate + inflation_max: typing.Text = ... + # minimum inflation rate + inflation_min: typing.Text = ... + # goal of percent bonded atoms + goal_bonded: typing.Text = ... + # expected blocks per year + blocks_per_year: builtins.int = ... + def __init__(self, + *, + mint_denom : typing.Text = ..., + inflation_rate_change : typing.Text = ..., + inflation_max : typing.Text = ..., + inflation_min : typing.Text = ..., + goal_bonded : typing.Text = ..., + blocks_per_year : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"blocks_per_year",b"blocks_per_year",u"goal_bonded",b"goal_bonded",u"inflation_max",b"inflation_max",u"inflation_min",b"inflation_min",u"inflation_rate_change",b"inflation_rate_change",u"mint_denom",b"mint_denom"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi new file mode 100644 index 0000000..39a9d03 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/mint_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .mint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..ff7a783 --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/query_pb2.pyi @@ -0,0 +1,77 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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.mint.v1beta1.mint_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.mint.v1beta1.mint_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 + +# QueryInflationRequest is the request type for the Query/Inflation RPC method. +class QueryInflationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryInflationRequest = QueryInflationRequest + +# QueryInflationResponse is the response type for the Query/Inflation RPC +# method. +class QueryInflationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFLATION_FIELD_NUMBER: builtins.int + # inflation is the current minting inflation value. + inflation: builtins.bytes = ... + def __init__(self, + *, + inflation : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"inflation",b"inflation"]) -> None: ... +global___QueryInflationResponse = QueryInflationResponse + +# QueryAnnualProvisionsRequest is the request type for the +# Query/AnnualProvisions RPC method. +class QueryAnnualProvisionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryAnnualProvisionsRequest = QueryAnnualProvisionsRequest + +# QueryAnnualProvisionsResponse is the response type for the +# Query/AnnualProvisions RPC method. +class QueryAnnualProvisionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ANNUAL_PROVISIONS_FIELD_NUMBER: builtins.int + # annual_provisions is the current minting annual provisions value. + annual_provisions: builtins.bytes = ... + def __init__(self, + *, + annual_provisions : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"annual_provisions",b"annual_provisions"]) -> None: ... +global___QueryAnnualProvisionsResponse = QueryAnnualProvisionsResponse diff --git a/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..58d41cc --- /dev/null +++ b/pyband/proto/cosmos/mint/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params returns the total set of minting parameters. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # Inflation returns the current minting inflation value. + Inflation:grpc.UnaryUnaryMultiCallable[ + global___QueryInflationRequest, + global___QueryInflationResponse] = ... + + # AnnualProvisions current minting annual provisions value. + AnnualProvisions:grpc.UnaryUnaryMultiCallable[ + global___QueryAnnualProvisionsRequest, + global___QueryAnnualProvisionsResponse] = ... + + +# Query provides defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Params returns the total set of minting parameters. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # Inflation returns the current minting inflation value. + @abc.abstractmethod + def Inflation(self, + request: global___QueryInflationRequest, + context: grpc.ServicerContext, + ) -> global___QueryInflationResponse: ... + + # AnnualProvisions current minting annual provisions value. + @abc.abstractmethod + def AnnualProvisions(self, + request: global___QueryAnnualProvisionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryAnnualProvisionsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2.pyi new file mode 100644 index 0000000..9e316f2 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/params_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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ParameterChangeProposal defines a proposal to change one or more parameters. +class ParameterChangeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + CHANGES_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def changes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParamChange]: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + changes : typing.Optional[typing.Iterable[global___ParamChange]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"changes",b"changes",u"description",b"description",u"title",b"title"]) -> None: ... +global___ParameterChangeProposal = ParameterChangeProposal + +# ParamChange defines an individual parameter change, for use in +# ParameterChangeProposal. +class ParamChange(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + subspace: typing.Text = ... + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + subspace : typing.Text = ..., + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace",u"value",b"value"]) -> None: ... +global___ParamChange = ParamChange diff --git a/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi new file mode 100644 index 0000000..72a5115 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/params_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..f9e0d20 --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/query_pb2.pyi @@ -0,0 +1,44 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.params.v1beta1.params_pb2 +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryParamsRequest is request type for the Query/Params RPC method. +class QueryParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SUBSPACE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + # subspace defines the module to query the parameter for. + subspace: typing.Text = ... + # key defines the key of the parameter in the subspace. + key: typing.Text = ... + def __init__(self, + *, + subspace : typing.Text = ..., + key : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"subspace",b"subspace"]) -> None: ... +global___QueryParamsRequest = QueryParamsRequest + +# QueryParamsResponse is response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAM_FIELD_NUMBER: builtins.int + # param defines the queried parameter. + @property + def param(self) -> cosmos.params.v1beta1.params_pb2.ParamChange: ... + def __init__(self, + *, + param : typing.Optional[cosmos.params.v1beta1.params_pb2.ParamChange] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"param",b"param"]) -> None: ... +global___QueryParamsResponse = QueryParamsResponse diff --git a/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..41fc43b --- /dev/null +++ b/pyband/proto/cosmos/params/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@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: ... + # Params queries a specific parameter of a module, given its subspace and + # key. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries a specific parameter of a module, given its subspace and + # key. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..619f677 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2.pyi @@ -0,0 +1,95 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the slashing module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + SIGNING_INFOS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + # params defines all the paramaters of related to deposit. + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... + # signing_infos represents a map between validator addresses and their + # signing infos. + @property + def signing_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SigningInfo]: ... + # missed_blocks represents a map between validator addresses and their + # missed blocks. + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorMissedBlocks]: ... + def __init__(self, + *, + params : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.Params] = ..., + signing_infos : typing.Optional[typing.Iterable[global___SigningInfo]] = ..., + missed_blocks : typing.Optional[typing.Iterable[global___ValidatorMissedBlocks]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"missed_blocks",b"missed_blocks",u"params",b"params",u"signing_infos",b"signing_infos"]) -> None: ... +global___GenesisState = GenesisState + +# SigningInfo stores validator signing info of corresponding address. +class SigningInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_SIGNING_INFO_FIELD_NUMBER: builtins.int + # address is the validator address. + address: typing.Text = ... + # validator_signing_info represents the signing info of this validator. + @property + def validator_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... + def __init__(self, + *, + address : typing.Text = ..., + validator_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator_signing_info",b"validator_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"validator_signing_info",b"validator_signing_info"]) -> None: ... +global___SigningInfo = SigningInfo + +# ValidatorMissedBlocks contains array of missed blocks of corresponding +# address. +class ValidatorMissedBlocks(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + MISSED_BLOCKS_FIELD_NUMBER: builtins.int + # address is the validator address. + address: typing.Text = ... + # missed_blocks is an array of missed blocks by the validator. + @property + def missed_blocks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___MissedBlock]: ... + def __init__(self, + *, + address : typing.Text = ..., + missed_blocks : typing.Optional[typing.Iterable[global___MissedBlock]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"missed_blocks",b"missed_blocks"]) -> None: ... +global___ValidatorMissedBlocks = ValidatorMissedBlocks + +# MissedBlock contains height and missed status as boolean. +class MissedBlock(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INDEX_FIELD_NUMBER: builtins.int + MISSED_FIELD_NUMBER: builtins.int + # index is the height at which the block was missed. + index: builtins.int = ... + # missed is the missed status. + missed: builtins.bool = ... + def __init__(self, + *, + index : builtins.int = ..., + missed : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"missed",b"missed"]) -> None: ... +global___MissedBlock = MissedBlock diff --git a/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..a63ca89 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/query_pb2.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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 + @property + def params(self) -> cosmos.slashing.v1beta1.slashing_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.slashing.v1beta1.slashing_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 + +# QuerySigningInfoRequest is the request type for the Query/SigningInfo RPC +# method +class QuerySigningInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONS_ADDRESS_FIELD_NUMBER: builtins.int + # cons_address is the address to query signing info of + cons_address: typing.Text = ... + def __init__(self, + *, + cons_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"cons_address",b"cons_address"]) -> None: ... +global___QuerySigningInfoRequest = QuerySigningInfoRequest + +# QuerySigningInfoResponse is the response type for the Query/SigningInfo RPC +# method +class QuerySigningInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VAL_SIGNING_INFO_FIELD_NUMBER: builtins.int + # val_signing_info is the signing info of requested val cons address + @property + def val_signing_info(self) -> cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo: ... + def __init__(self, + *, + val_signing_info : typing.Optional[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"val_signing_info",b"val_signing_info"]) -> None: ... +global___QuerySigningInfoResponse = QuerySigningInfoResponse + +# QuerySigningInfosRequest is the request type for the Query/SigningInfos RPC +# method +class QuerySigningInfosRequest(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: ... + 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___QuerySigningInfosRequest = QuerySigningInfosRequest + +# QuerySigningInfosResponse is the response type for the Query/SigningInfos RPC +# method +class QuerySigningInfosResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + INFO_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # info is the signing info of all validators + @property + def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]: ... + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + info : typing.Optional[typing.Iterable[cosmos.slashing.v1beta1.slashing_pb2.ValidatorSigningInfo]] = ..., + 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"info",b"info",u"pagination",b"pagination"]) -> None: ... +global___QuerySigningInfosResponse = QuerySigningInfosResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..d6cbbc6 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Params queries the parameters of slashing module + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # SigningInfo queries the signing info of given cons address + SigningInfo:grpc.UnaryUnaryMultiCallable[ + global___QuerySigningInfoRequest, + global___QuerySigningInfoResponse] = ... + + # SigningInfos queries signing info of all validators + SigningInfos:grpc.UnaryUnaryMultiCallable[ + global___QuerySigningInfosRequest, + global___QuerySigningInfosResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Params queries the parameters of slashing module + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # SigningInfo queries the signing info of given cons address + @abc.abstractmethod + def SigningInfo(self, + request: global___QuerySigningInfoRequest, + context: grpc.ServicerContext, + ) -> global___QuerySigningInfoResponse: ... + + # SigningInfos queries signing info of all validators + @abc.abstractmethod + def SigningInfos(self, + request: global___QuerySigningInfosRequest, + context: grpc.ServicerContext, + ) -> global___QuerySigningInfosResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi new file mode 100644 index 0000000..bfabdd2 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2.pyi @@ -0,0 +1,78 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.duration_pb2 +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ValidatorSigningInfo defines a validator's signing info for monitoring their +# liveness activity. +class ValidatorSigningInfo(google.protobuf.message.Message): + 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: typing.Text = ... + # Height at which validator was first a candidate OR was unjailed + start_height: 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`. + index_offset: builtins.int = ... + # Timestamp until which the validator is jailed due to liveness downtime. + @property + def jailed_until(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # 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. + tombstoned: builtins.bool = ... + # A counter kept to avoid unnecessary array reads. + # Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. + missed_blocks_counter: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + start_height : builtins.int = ..., + index_offset : builtins.int = ..., + jailed_until : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + tombstoned : builtins.bool = ..., + missed_blocks_counter : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"jailed_until",b"jailed_until"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"index_offset",b"index_offset",u"jailed_until",b"jailed_until",u"missed_blocks_counter",b"missed_blocks_counter",u"start_height",b"start_height",u"tombstoned",b"tombstoned"]) -> None: ... +global___ValidatorSigningInfo = ValidatorSigningInfo + +# Params represents the parameters used for by the slashing module. +class Params(google.protobuf.message.Message): + 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 : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + slash_fraction_double_sign : builtins.bytes = ..., + slash_fraction_downtime : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"downtime_jail_duration",b"downtime_jail_duration",u"min_signed_per_window",b"min_signed_per_window",u"signed_blocks_window",b"signed_blocks_window",u"slash_fraction_double_sign",b"slash_fraction_double_sign",u"slash_fraction_downtime",b"slash_fraction_downtime"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi new file mode 100644 index 0000000..7e5fee1 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/slashing_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .slashing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..0778875 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgUnjail defines the Msg/Unjail request type +class MsgUnjail(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + validator_addr: typing.Text = ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... +global___MsgUnjail = MsgUnjail + +# MsgUnjailResponse defines the Msg/Unjail response type +class MsgUnjailResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUnjailResponse = MsgUnjailResponse diff --git a/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..f2f06e3 --- /dev/null +++ b/pyband/proto/cosmos/slashing/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,32 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the slashing Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # 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. + Unjail:grpc.UnaryUnaryMultiCallable[ + global___MsgUnjail, + global___MsgUnjailResponse] = ... + + +# Msg defines the slashing Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # 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. + @abc.abstractmethod + def Unjail(self, + request: global___MsgUnjail, + context: grpc.ServicerContext, + ) -> global___MsgUnjailResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi new file mode 100644 index 0000000..fc618e5 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2.pyi @@ -0,0 +1,85 @@ +""" +@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.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# AuthorizationType defines the type of staking module authorization type +class AuthorizationType(_AuthorizationType, metaclass=_AuthorizationTypeEnumTypeWrapper): + pass +class _AuthorizationType: + V = typing.NewType('V', builtins.int) +class _AuthorizationTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AuthorizationType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type + AUTHORIZATION_TYPE_UNSPECIFIED = AuthorizationType.V(0) + # AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate + AUTHORIZATION_TYPE_DELEGATE = AuthorizationType.V(1) + # AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate + AUTHORIZATION_TYPE_UNDELEGATE = AuthorizationType.V(2) + # AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate + AUTHORIZATION_TYPE_REDELEGATE = AuthorizationType.V(3) + +# AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type +AUTHORIZATION_TYPE_UNSPECIFIED = AuthorizationType.V(0) +# AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate +AUTHORIZATION_TYPE_DELEGATE = AuthorizationType.V(1) +# AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate +AUTHORIZATION_TYPE_UNDELEGATE = AuthorizationType.V(2) +# AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate +AUTHORIZATION_TYPE_REDELEGATE = AuthorizationType.V(3) +global___AuthorizationType = AuthorizationType + + +# StakeAuthorization defines authorization for delegate/undelegate/redelegate. +class StakeAuthorization(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Validators defines list of validator addresses. + class Validators(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + @property + def address(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + address : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"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 + # 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 max_tokens(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + # allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's + # account. + @property + def allow_list(self) -> global___StakeAuthorization.Validators: ... + # deny_list specifies list of validator addresses to whom grantee can not delegate tokens. + @property + def deny_list(self) -> global___StakeAuthorization.Validators: ... + # authorization_type defines one of AuthorizationType. + authorization_type: global___AuthorizationType.V = ... + def __init__(self, + *, + max_tokens : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + allow_list : typing.Optional[global___StakeAuthorization.Validators] = ..., + deny_list : typing.Optional[global___StakeAuthorization.Validators] = ..., + authorization_type : global___AuthorizationType.V = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"allow_list",b"allow_list",u"deny_list",b"deny_list",u"max_tokens",b"max_tokens",u"validators",b"validators"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_list",b"allow_list",u"authorization_type",b"authorization_type",u"deny_list",b"deny_list",u"max_tokens",b"max_tokens",u"validators",b"validators"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"validators",b"validators"]) -> typing.Optional[typing_extensions.Literal["allow_list","deny_list"]]: ... +global___StakeAuthorization = StakeAuthorization diff --git a/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi new file mode 100644 index 0000000..9e33667 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/authz_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .authz_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi new file mode 100644 index 0000000..2f6335b --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.staking.v1beta1.staking_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 staking module's genesis state. +class GenesisState(google.protobuf.message.Message): + 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 + # params defines all the paramaters of related to deposit. + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... + # last_total_power tracks the total amounts of bonded tokens recorded during + # the previous end block. + last_total_power: builtins.bytes = ... + # last_validator_powers is a special index that provides a historical list + # of the last-block's bonded validators. + @property + def last_validator_powers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___LastValidatorPower]: ... + # delegations defines the validator set at genesis. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # delegations defines the delegations active at genesis. + @property + def delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Delegation]: ... + # unbonding_delegations defines the unbonding delegations active at genesis. + @property + def unbonding_delegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]: ... + # redelegations defines the redelegations active at genesis. + @property + def redelegations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Redelegation]: ... + exported: builtins.bool = ... + def __init__(self, + *, + params : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Params] = ..., + last_total_power : builtins.bytes = ..., + last_validator_powers : typing.Optional[typing.Iterable[global___LastValidatorPower]] = ..., + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Delegation]] = ..., + unbonding_delegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + redelegations : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Redelegation]] = ..., + exported : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegations",b"delegations",u"exported",b"exported",u"last_total_power",b"last_total_power",u"last_validator_powers",b"last_validator_powers",u"params",b"params",u"redelegations",b"redelegations",u"unbonding_delegations",b"unbonding_delegations",u"validators",b"validators"]) -> None: ... +global___GenesisState = GenesisState + +# LastValidatorPower required for validator set update logic. +class LastValidatorPower(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # address is the address of the validator. + address: typing.Text = ... + # power defines the power of the validator. + power: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___LastValidatorPower = LastValidatorPower diff --git a/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..9f9b08a --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/query_pb2.pyi @@ -0,0 +1,505 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryValidatorsRequest is request type for Query/Validators RPC method. +class QueryValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # status enables to query for validators matching a given status. + status: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + status : typing.Text = ..., + 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",u"status",b"status"]) -> None: ... +global___QueryValidatorsRequest = QueryValidatorsRequest + +# QueryValidatorsResponse is response type for the Query/Validators RPC method +class QueryValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validators contains all the queried validators. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + 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"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___QueryValidatorsResponse = QueryValidatorsResponse + +# QueryValidatorRequest is response type for the Query/Validator RPC method +class QueryValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorRequest = QueryValidatorRequest + +# QueryValidatorResponse is response type for the Query/Validator RPC method +class QueryValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # validator defines the the validator info. + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... + def __init__(self, + *, + validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___QueryValidatorResponse = QueryValidatorResponse + +# QueryValidatorDelegationsRequest is request type for the +# Query/ValidatorDelegations RPC method +class QueryValidatorDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + 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",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorDelegationsRequest = QueryValidatorDelegationsRequest + +# QueryValidatorDelegationsResponse is response type for the +# Query/ValidatorDelegations RPC method +class QueryValidatorDelegationsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., + 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"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... +global___QueryValidatorDelegationsResponse = QueryValidatorDelegationsResponse + +# QueryValidatorUnbondingDelegationsRequest is required type for the +# Query/ValidatorUnbondingDelegations RPC method +class QueryValidatorUnbondingDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + validator_addr : typing.Text = ..., + 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",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryValidatorUnbondingDelegationsRequest = QueryValidatorUnbondingDelegationsRequest + +# QueryValidatorUnbondingDelegationsResponse is response type for the +# Query/ValidatorUnbondingDelegations RPC method. +class QueryValidatorUnbondingDelegationsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + 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"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... +global___QueryValidatorUnbondingDelegationsResponse = QueryValidatorUnbondingDelegationsResponse + +# QueryDelegationRequest is request type for the Query/Delegation RPC method. +class QueryDelegationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryDelegationRequest = QueryDelegationRequest + +# QueryDelegationResponse is response type for the Query/Delegation RPC method. +class QueryDelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_RESPONSE_FIELD_NUMBER: builtins.int + # delegation_responses defines the delegation info of a delegation. + @property + def delegation_response(self) -> cosmos.staking.v1beta1.staking_pb2.DelegationResponse: ... + def __init__(self, + *, + delegation_response : typing.Optional[cosmos.staking.v1beta1.staking_pb2.DelegationResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegation_response",b"delegation_response"]) -> None: ... +global___QueryDelegationResponse = QueryDelegationResponse + +# QueryUnbondingDelegationRequest is request type for the +# Query/UnbondingDelegation RPC method. +class QueryUnbondingDelegationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryUnbondingDelegationRequest = QueryUnbondingDelegationRequest + +# QueryDelegationResponse is response type for the Query/UnbondingDelegation +# RPC method. +class QueryUnbondingDelegationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UNBOND_FIELD_NUMBER: builtins.int + # unbond defines the unbonding information of a delegation. + @property + def unbond(self) -> cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation: ... + def __init__(self, + *, + unbond : typing.Optional[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"unbond",b"unbond"]) -> None: ... +global___QueryUnbondingDelegationResponse = QueryUnbondingDelegationResponse + +# QueryDelegatorDelegationsRequest is request type for the +# Query/DelegatorDelegations RPC method. +class QueryDelegatorDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + 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"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorDelegationsRequest = QueryDelegatorDelegationsRequest + +# QueryDelegatorDelegationsResponse is response type for the +# Query/DelegatorDelegations RPC method. +class QueryDelegatorDelegationsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATION_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegation_responses defines all the delegations' info of a delegator. + @property + def delegation_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + delegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.DelegationResponse]] = ..., + 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"delegation_responses",b"delegation_responses",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorDelegationsResponse = QueryDelegatorDelegationsResponse + +# QueryDelegatorUnbondingDelegationsRequest is request type for the +# Query/DelegatorUnbondingDelegations RPC method. +class QueryDelegatorUnbondingDelegationsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + 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"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorUnbondingDelegationsRequest = QueryDelegatorUnbondingDelegationsRequest + +# QueryUnbondingDelegatorDelegationsResponse is response type for the +# Query/UnbondingDelegatorDelegations RPC method. +class QueryDelegatorUnbondingDelegationsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + unbonding_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.UnbondingDelegation]] = ..., + 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"pagination",b"pagination",u"unbonding_responses",b"unbonding_responses"]) -> None: ... +global___QueryDelegatorUnbondingDelegationsResponse = QueryDelegatorUnbondingDelegationsResponse + +# QueryRedelegationsRequest is request type for the Query/Redelegations RPC +# method. +class QueryRedelegationsRequest(google.protobuf.message.Message): + 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 defines the delegator address to query for. + delegator_addr: typing.Text = ... + # src_validator_addr defines the validator address to redelegate from. + src_validator_addr: typing.Text = ... + # dst_validator_addr defines the validator address to redelegate to. + dst_validator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + src_validator_addr : typing.Text = ..., + dst_validator_addr : typing.Text = ..., + 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"delegator_addr",b"delegator_addr",u"dst_validator_addr",b"dst_validator_addr",u"pagination",b"pagination",u"src_validator_addr",b"src_validator_addr"]) -> None: ... +global___QueryRedelegationsRequest = QueryRedelegationsRequest + +# QueryRedelegationsResponse is response type for the Query/Redelegations RPC +# method. +class QueryRedelegationsResponse(google.protobuf.message.Message): + 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]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + redelegation_responses : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.RedelegationResponse]] = ..., + 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"pagination",b"pagination",u"redelegation_responses",b"redelegation_responses"]) -> None: ... +global___QueryRedelegationsResponse = QueryRedelegationsResponse + +# QueryDelegatorValidatorsRequest is request type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # pagination defines an optional pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + 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"delegator_addr",b"delegator_addr",u"pagination",b"pagination"]) -> None: ... +global___QueryDelegatorValidatorsRequest = QueryDelegatorValidatorsRequest + +# QueryDelegatorValidatorsResponse is response type for the +# Query/DelegatorValidators RPC method. +class QueryDelegatorValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # validators defines the the validators' info of a delegator. + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.staking.v1beta1.staking_pb2.Validator]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[cosmos.staking.v1beta1.staking_pb2.Validator]] = ..., + 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"pagination",b"pagination",u"validators",b"validators"]) -> None: ... +global___QueryDelegatorValidatorsResponse = QueryDelegatorValidatorsResponse + +# QueryDelegatorValidatorRequest is request type for the +# Query/DelegatorValidator RPC method. +class QueryDelegatorValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDR_FIELD_NUMBER: builtins.int + VALIDATOR_ADDR_FIELD_NUMBER: builtins.int + # delegator_addr defines the delegator address to query for. + delegator_addr: typing.Text = ... + # validator_addr defines the validator address to query for. + validator_addr: typing.Text = ... + def __init__(self, + *, + delegator_addr : typing.Text = ..., + validator_addr : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_addr",b"delegator_addr",u"validator_addr",b"validator_addr"]) -> None: ... +global___QueryDelegatorValidatorRequest = QueryDelegatorValidatorRequest + +# QueryDelegatorValidatorResponse response type for the +# Query/DelegatorValidator RPC method. +class QueryDelegatorValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # validator defines the the validator info. + @property + def validator(self) -> cosmos.staking.v1beta1.staking_pb2.Validator: ... + def __init__(self, + *, + validator : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Validator] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___QueryDelegatorValidatorResponse = QueryDelegatorValidatorResponse + +# QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC +# method. +class QueryHistoricalInfoRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + # height defines at which height to query the historical info. + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___QueryHistoricalInfoRequest = QueryHistoricalInfoRequest + +# QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC +# method. +class QueryHistoricalInfoResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HIST_FIELD_NUMBER: builtins.int + # hist defines the historical info at the given height. + @property + def hist(self) -> cosmos.staking.v1beta1.staking_pb2.HistoricalInfo: ... + def __init__(self, + *, + hist : typing.Optional[cosmos.staking.v1beta1.staking_pb2.HistoricalInfo] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hist",b"hist"]) -> None: ... +global___QueryHistoricalInfoResponse = QueryHistoricalInfoResponse + +# QueryPoolRequest is request type for the Query/Pool RPC method. +class QueryPoolRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryPoolRequest = QueryPoolRequest + +# QueryPoolResponse is response type for the Query/Pool RPC method. +class QueryPoolResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + POOL_FIELD_NUMBER: builtins.int + # pool defines the pool info. + @property + def pool(self) -> cosmos.staking.v1beta1.staking_pb2.Pool: ... + def __init__(self, + *, + pool : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Pool] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pool",b"pool"]) -> None: ... +global___QueryPoolResponse = QueryPoolResponse + +# QueryParamsRequest is 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 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 holds all the parameters of this module. + @property + def params(self) -> cosmos.staking.v1beta1.staking_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[cosmos.staking.v1beta1.staking_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 diff --git a/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..93bc7c8 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,192 @@ +""" +@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: ... + # Validators queries all validators that match the given status. + Validators:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorsRequest, + global___QueryValidatorsResponse] = ... + + # Validator queries validator info for given validator address. + Validator:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorRequest, + global___QueryValidatorResponse] = ... + + # ValidatorDelegations queries delegate info for given validator. + ValidatorDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorDelegationsRequest, + global___QueryValidatorDelegationsResponse] = ... + + # ValidatorUnbondingDelegations queries unbonding delegations of a validator. + ValidatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorUnbondingDelegationsRequest, + global___QueryValidatorUnbondingDelegationsResponse] = ... + + # Delegation queries delegate info for given validator delegator pair. + Delegation:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegationRequest, + global___QueryDelegationResponse] = ... + + # UnbondingDelegation queries unbonding info for given validator delegator + # pair. + UnbondingDelegation:grpc.UnaryUnaryMultiCallable[ + global___QueryUnbondingDelegationRequest, + global___QueryUnbondingDelegationResponse] = ... + + # DelegatorDelegations queries all delegations of a given delegator address. + DelegatorDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorDelegationsRequest, + global___QueryDelegatorDelegationsResponse] = ... + + # DelegatorUnbondingDelegations queries all unbonding delegations of a given + # delegator address. + DelegatorUnbondingDelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorUnbondingDelegationsRequest, + global___QueryDelegatorUnbondingDelegationsResponse] = ... + + # Redelegations queries redelegations of given address. + Redelegations:grpc.UnaryUnaryMultiCallable[ + global___QueryRedelegationsRequest, + global___QueryRedelegationsResponse] = ... + + # DelegatorValidators queries all validators info for given delegator + # address. + DelegatorValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorsRequest, + global___QueryDelegatorValidatorsResponse] = ... + + # DelegatorValidator queries validator info for given delegator validator + # pair. + DelegatorValidator:grpc.UnaryUnaryMultiCallable[ + global___QueryDelegatorValidatorRequest, + global___QueryDelegatorValidatorResponse] = ... + + # HistoricalInfo queries the historical info for given height. + HistoricalInfo:grpc.UnaryUnaryMultiCallable[ + global___QueryHistoricalInfoRequest, + global___QueryHistoricalInfoResponse] = ... + + # Pool queries the pool info. + Pool:grpc.UnaryUnaryMultiCallable[ + global___QueryPoolRequest, + global___QueryPoolResponse] = ... + + # Parameters queries the staking parameters. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Validators queries all validators that match the given status. + @abc.abstractmethod + def Validators(self, + request: global___QueryValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorsResponse: ... + + # Validator queries validator info for given validator address. + @abc.abstractmethod + def Validator(self, + request: global___QueryValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorResponse: ... + + # ValidatorDelegations queries delegate info for given validator. + @abc.abstractmethod + def ValidatorDelegations(self, + request: global___QueryValidatorDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorDelegationsResponse: ... + + # ValidatorUnbondingDelegations queries unbonding delegations of a validator. + @abc.abstractmethod + def ValidatorUnbondingDelegations(self, + request: global___QueryValidatorUnbondingDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorUnbondingDelegationsResponse: ... + + # Delegation queries delegate info for given validator delegator pair. + @abc.abstractmethod + def Delegation(self, + request: global___QueryDelegationRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegationResponse: ... + + # UnbondingDelegation queries unbonding info for given validator delegator + # pair. + @abc.abstractmethod + def UnbondingDelegation(self, + request: global___QueryUnbondingDelegationRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnbondingDelegationResponse: ... + + # DelegatorDelegations queries all delegations of a given delegator address. + @abc.abstractmethod + def DelegatorDelegations(self, + request: global___QueryDelegatorDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorDelegationsResponse: ... + + # DelegatorUnbondingDelegations queries all unbonding delegations of a given + # delegator address. + @abc.abstractmethod + def DelegatorUnbondingDelegations(self, + request: global___QueryDelegatorUnbondingDelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorUnbondingDelegationsResponse: ... + + # Redelegations queries redelegations of given address. + @abc.abstractmethod + def Redelegations(self, + request: global___QueryRedelegationsRequest, + context: grpc.ServicerContext, + ) -> global___QueryRedelegationsResponse: ... + + # DelegatorValidators queries all validators info for given delegator + # address. + @abc.abstractmethod + def DelegatorValidators(self, + request: global___QueryDelegatorValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorsResponse: ... + + # DelegatorValidator queries validator info for given delegator validator + # pair. + @abc.abstractmethod + def DelegatorValidator(self, + request: global___QueryDelegatorValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryDelegatorValidatorResponse: ... + + # HistoricalInfo queries the historical info for given height. + @abc.abstractmethod + def HistoricalInfo(self, + request: global___QueryHistoricalInfoRequest, + context: grpc.ServicerContext, + ) -> global___QueryHistoricalInfoResponse: ... + + # Pool queries the pool info. + @abc.abstractmethod + def Pool(self, + request: global___QueryPoolRequest, + context: grpc.ServicerContext, + ) -> global___QueryPoolResponse: ... + + # Parameters queries the staking 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: ... diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi new file mode 100644 index 0000000..c01aa99 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/staking_pb2.pyi @@ -0,0 +1,513 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BondStatus is the status of a validator. +class BondStatus(_BondStatus, metaclass=_BondStatusEnumTypeWrapper): + pass +class _BondStatus: + V = typing.NewType('V', builtins.int) +class _BondStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BondStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # UNSPECIFIED defines an invalid validator status. + BOND_STATUS_UNSPECIFIED = BondStatus.V(0) + # UNBONDED defines a validator that is not bonded. + BOND_STATUS_UNBONDED = BondStatus.V(1) + # UNBONDING defines a validator that is unbonding. + BOND_STATUS_UNBONDING = BondStatus.V(2) + # BONDED defines a validator that is bonded. + BOND_STATUS_BONDED = BondStatus.V(3) + +# UNSPECIFIED defines an invalid validator status. +BOND_STATUS_UNSPECIFIED = BondStatus.V(0) +# UNBONDED defines a validator that is not bonded. +BOND_STATUS_UNBONDED = BondStatus.V(1) +# UNBONDING defines a validator that is unbonding. +BOND_STATUS_UNBONDING = BondStatus.V(2) +# BONDED defines a validator that is bonded. +BOND_STATUS_BONDED = BondStatus.V(3) +global___BondStatus = BondStatus + + +# 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). +class HistoricalInfo(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.types.types_pb2.Header] = ..., + valset : typing.Optional[typing.Iterable[global___Validator]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"header",b"header",u"valset",b"valset"]) -> None: ... +global___HistoricalInfo = HistoricalInfo + +# CommissionRates defines the initial commission rates to be used for creating +# a validator. +class CommissionRates(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RATE_FIELD_NUMBER: builtins.int + MAX_RATE_FIELD_NUMBER: builtins.int + MAX_CHANGE_RATE_FIELD_NUMBER: builtins.int + # rate is the commission rate charged to delegators, as a fraction. + rate: typing.Text = ... + # max_rate defines the maximum commission rate which validator can ever charge, as a fraction. + max_rate: typing.Text = ... + # max_change_rate defines the maximum daily increase of the validator commission, as a fraction. + max_change_rate: typing.Text = ... + def __init__(self, + *, + rate : typing.Text = ..., + max_rate : typing.Text = ..., + max_change_rate : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_change_rate",b"max_change_rate",u"max_rate",b"max_rate",u"rate",b"rate"]) -> None: ... +global___CommissionRates = CommissionRates + +# Commission defines commission parameters for a given validator. +class Commission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMISSION_RATES_FIELD_NUMBER: builtins.int + UPDATE_TIME_FIELD_NUMBER: builtins.int + # commission_rates defines the initial commission rates to be used for creating a validator. + @property + def commission_rates(self) -> global___CommissionRates: ... + # update_time is the last time the commission rate was changed. + @property + def update_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + commission_rates : typing.Optional[global___CommissionRates] = ..., + update_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission_rates",b"commission_rates",u"update_time",b"update_time"]) -> None: ... +global___Commission = Commission + +# Description defines a validator description. +class Description(google.protobuf.message.Message): + 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 defines a human-readable name for the validator. + moniker: typing.Text = ... + # identity defines an optional identity signature (ex. UPort or Keybase). + identity: typing.Text = ... + # website defines an optional website link. + website: typing.Text = ... + # security_contact defines an optional email for security contact. + security_contact: typing.Text = ... + # details define other optional details. + details: typing.Text = ... + def __init__(self, + *, + moniker : typing.Text = ..., + identity : typing.Text = ..., + website : typing.Text = ..., + security_contact : typing.Text = ..., + details : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"details",b"details",u"identity",b"identity",u"moniker",b"moniker",u"security_contact",b"security_contact",u"website",b"website"]) -> None: ... +global___Description = Description + +# 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. +class Validator(google.protobuf.message.Message): + 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 + # operator_address defines the address of the validator's operator; bech encoded in JSON. + operator_address: typing.Text = ... + # consensus_pubkey is the consensus public key of the validator, as a Protobuf Any. + @property + def consensus_pubkey(self) -> google.protobuf.any_pb2.Any: ... + # jailed defined whether the validator has been jailed from bonded status or not. + jailed: builtins.bool = ... + # status is the validator status (bonded/unbonding/unbonded). + status: global___BondStatus.V = ... + # tokens define the delegated tokens (incl. self-delegation). + tokens: typing.Text = ... + # delegator_shares defines total shares issued to a validator's delegators. + delegator_shares: typing.Text = ... + # description defines the description terms for the validator. + @property + def description(self) -> global___Description: ... + # unbonding_height defines, if unbonding, the height at which this validator has begun unbonding. + unbonding_height: builtins.int = ... + # unbonding_time defines, if unbonding, the min time for the validator to complete unbonding. + @property + def unbonding_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # commission defines the commission parameters. + @property + def commission(self) -> global___Commission: ... + # min_self_delegation is the validator's self declared minimum self delegation. + min_self_delegation: typing.Text = ... + def __init__(self, + *, + operator_address : typing.Text = ..., + consensus_pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., + jailed : builtins.bool = ..., + status : global___BondStatus.V = ..., + tokens : typing.Text = ..., + delegator_shares : typing.Text = ..., + description : typing.Optional[global___Description] = ..., + unbonding_height : builtins.int = ..., + unbonding_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + commission : typing.Optional[global___Commission] = ..., + min_self_delegation : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"description",b"description",u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"consensus_pubkey",b"consensus_pubkey",u"delegator_shares",b"delegator_shares",u"description",b"description",u"jailed",b"jailed",u"min_self_delegation",b"min_self_delegation",u"operator_address",b"operator_address",u"status",b"status",u"tokens",b"tokens",u"unbonding_height",b"unbonding_height",u"unbonding_time",b"unbonding_time"]) -> None: ... +global___Validator = Validator + +# ValAddresses defines a repeated set of validator addresses. +class ValAddresses(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESSES_FIELD_NUMBER: builtins.int + @property + def addresses(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + addresses : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"addresses",b"addresses"]) -> None: ... +global___ValAddresses = ValAddresses + +# 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. +class DVPair(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___DVPair = DVPair + +# DVPairs defines an array of DVPair objects. +class DVPairs(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___DVPair]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pairs",b"pairs"]) -> None: ... +global___DVPairs = DVPairs + +# 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. +class DVVTriplet(google.protobuf.message.Message): + 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: typing.Text = ... + validator_src_address: typing.Text = ... + validator_dst_address: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___DVVTriplet = DVVTriplet + +# DVVTriplets defines an array of DVVTriplet objects. +class DVVTriplets(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___DVVTriplet]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"triplets",b"triplets"]) -> None: ... +global___DVVTriplets = DVVTriplets + +# 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. +class Delegation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + SHARES_FIELD_NUMBER: builtins.int + # delegator_address is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the bech32-encoded address of the validator. + validator_address: typing.Text = ... + # shares define the delegation shares received. + shares: typing.Text = ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + shares : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"shares",b"shares",u"validator_address",b"validator_address"]) -> None: ... +global___Delegation = Delegation + +# UnbondingDelegation stores all of a single delegator's unbonding bonds +# for a single validator in an time-ordered list. +class UnbondingDelegation(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + ENTRIES_FIELD_NUMBER: builtins.int + # delegator_address is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_address is the bech32-encoded address of the validator. + validator_address: typing.Text = ... + # entries are the unbonding delegation entries. + # unbonding delegation entries + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___UnbondingDelegationEntry]: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + entries : typing.Optional[typing.Iterable[global___UnbondingDelegationEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_address",b"validator_address"]) -> None: ... +global___UnbondingDelegation = UnbondingDelegation + +# UnbondingDelegationEntry defines an unbonding object with relevant metadata. +class UnbondingDelegationEntry(google.protobuf.message.Message): + 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 + # creation_height is the height which the unbonding took place. + creation_height: builtins.int = ... + # completion_time is the unix time for unbonding completion. + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # initial_balance defines the tokens initially scheduled to receive at completion. + initial_balance: typing.Text = ... + # balance defines the tokens to receive at completion. + balance: typing.Text = ... + def __init__(self, + *, + creation_height : builtins.int = ..., + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + initial_balance : typing.Text = ..., + balance : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance"]) -> None: ... +global___UnbondingDelegationEntry = UnbondingDelegationEntry + +# RedelegationEntry defines a redelegation object with relevant metadata. +class RedelegationEntry(google.protobuf.message.Message): + 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 + # creation_height defines the height which the redelegation took place. + creation_height: builtins.int = ... + # completion_time defines the unix time for redelegation completion. + @property + def completion_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # initial_balance defines the initial balance when redelegation started. + initial_balance: typing.Text = ... + # shares_dst is the amount of destination-validator shares created by redelegation. + shares_dst: typing.Text = ... + def __init__(self, + *, + creation_height : builtins.int = ..., + completion_time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + initial_balance : typing.Text = ..., + shares_dst : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time",u"creation_height",b"creation_height",u"initial_balance",b"initial_balance",u"shares_dst",b"shares_dst"]) -> None: ... +global___RedelegationEntry = RedelegationEntry + +# Redelegation contains the list of a particular delegator's redelegating bonds +# from a particular source validator to a particular destination validator. +class Redelegation(google.protobuf.message.Message): + 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 is the bech32-encoded address of the delegator. + delegator_address: typing.Text = ... + # validator_src_address is the validator redelegation source operator address. + validator_src_address: typing.Text = ... + # validator_dst_address is the validator redelegation destination operator address. + validator_dst_address: typing.Text = ... + # entries are the redelegation entries. + # redelegation entries + @property + def entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RedelegationEntry]: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + entries : typing.Optional[typing.Iterable[global___RedelegationEntry]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"delegator_address",b"delegator_address",u"entries",b"entries",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___Redelegation = Redelegation + +# Params defines the parameters for the staking module. +class Params(google.protobuf.message.Message): + 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 + # unbonding_time is the time duration of unbonding. + @property + def unbonding_time(self) -> google.protobuf.duration_pb2.Duration: ... + # max_validators is the maximum number of validators. + max_validators: builtins.int = ... + # max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio). + max_entries: builtins.int = ... + # historical_entries is the number of historical entries to persist. + historical_entries: builtins.int = ... + # bond_denom defines the bondable coin denomination. + bond_denom: typing.Text = ... + def __init__(self, + *, + unbonding_time : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_validators : builtins.int = ..., + max_entries : builtins.int = ..., + historical_entries : builtins.int = ..., + bond_denom : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"unbonding_time",b"unbonding_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bond_denom",b"bond_denom",u"historical_entries",b"historical_entries",u"max_entries",b"max_entries",u"max_validators",b"max_validators",u"unbonding_time",b"unbonding_time"]) -> None: ... +global___Params = Params + +# DelegationResponse is equivalent to Delegation except that it contains a +# balance in addition to shares which is more suitable for client responses. +class DelegationResponse(google.protobuf.message.Message): + 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 : typing.Optional[global___Delegation] = ..., + balance : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"delegation",b"delegation"]) -> None: ... +global___DelegationResponse = DelegationResponse + +# RedelegationEntryResponse is equivalent to a RedelegationEntry except that it +# contains a balance in addition to shares which is more suitable for client +# responses. +class RedelegationEntryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REDELEGATION_ENTRY_FIELD_NUMBER: builtins.int + BALANCE_FIELD_NUMBER: builtins.int + @property + def redelegation_entry(self) -> global___RedelegationEntry: ... + balance: typing.Text = ... + def __init__(self, + *, + redelegation_entry : typing.Optional[global___RedelegationEntry] = ..., + balance : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"redelegation_entry",b"redelegation_entry"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"balance",b"balance",u"redelegation_entry",b"redelegation_entry"]) -> None: ... +global___RedelegationEntryResponse = RedelegationEntryResponse + +# RedelegationResponse is equivalent to a Redelegation except that its entries +# contain a balance in addition to shares which is more suitable for client +# responses. +class RedelegationResponse(google.protobuf.message.Message): + 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 : typing.Optional[global___Redelegation] = ..., + entries : typing.Optional[typing.Iterable[global___RedelegationEntryResponse]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"redelegation",b"redelegation"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"entries",b"entries",u"redelegation",b"redelegation"]) -> None: ... +global___RedelegationResponse = RedelegationResponse + +# Pool is used for tracking bonded and not-bonded token supply of the bond +# denomination. +class Pool(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NOT_BONDED_TOKENS_FIELD_NUMBER: builtins.int + BONDED_TOKENS_FIELD_NUMBER: builtins.int + not_bonded_tokens: typing.Text = ... + bonded_tokens: typing.Text = ... + def __init__(self, + *, + not_bonded_tokens : typing.Text = ..., + bonded_tokens : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bonded_tokens",b"bonded_tokens",u"not_bonded_tokens",b"not_bonded_tokens"]) -> None: ... +global___Pool = Pool diff --git a/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi new file mode 100644 index 0000000..6268dbf --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/staking_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .staking_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..18b93dc --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/tx_pb2.pyi @@ -0,0 +1,192 @@ +""" +@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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateValidator defines a SDK message for creating a new validator. +class MsgCreateValidator(google.protobuf.message.Message): + 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: typing.Text = ... + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def pubkey(self) -> google.protobuf.any_pb2.Any: ... + @property + def value(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., + commission : typing.Optional[cosmos.staking.v1beta1.staking_pb2.CommissionRates] = ..., + min_self_delegation : typing.Text = ..., + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + pubkey : typing.Optional[google.protobuf.any_pb2.Any] = ..., + value : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"description",b"description",u"pubkey",b"pubkey",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission",b"commission",u"delegator_address",b"delegator_address",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"pubkey",b"pubkey",u"validator_address",b"validator_address",u"value",b"value"]) -> None: ... +global___MsgCreateValidator = MsgCreateValidator + +# MsgCreateValidatorResponse defines the Msg/CreateValidator response type. +class MsgCreateValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateValidatorResponse = MsgCreateValidatorResponse + +# MsgEditValidator defines a SDK message for editing an existing validator. +class MsgEditValidator(google.protobuf.message.Message): + 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: typing.Text = ... + # 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 + commission_rate: typing.Text = ... + min_self_delegation: typing.Text = ... + def __init__(self, + *, + description : typing.Optional[cosmos.staking.v1beta1.staking_pb2.Description] = ..., + validator_address : typing.Text = ..., + commission_rate : typing.Text = ..., + min_self_delegation : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"description",b"description"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commission_rate",b"commission_rate",u"description",b"description",u"min_self_delegation",b"min_self_delegation",u"validator_address",b"validator_address"]) -> None: ... +global___MsgEditValidator = MsgEditValidator + +# MsgEditValidatorResponse defines the Msg/EditValidator response type. +class MsgEditValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditValidatorResponse = MsgEditValidatorResponse + +# MsgDelegate defines a SDK message for performing a delegation of coins +# from a delegator to a validator. +class MsgDelegate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgDelegate = MsgDelegate + +# MsgDelegateResponse defines the Msg/Delegate response type. +class MsgDelegateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgDelegateResponse = MsgDelegateResponse + +# MsgBeginRedelegate defines a SDK message for performing a redelegation +# of coins from a delegator and source validator to a destination validator. +class MsgBeginRedelegate(google.protobuf.message.Message): + 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: typing.Text = ... + validator_src_address: typing.Text = ... + validator_dst_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_src_address : typing.Text = ..., + validator_dst_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_dst_address",b"validator_dst_address",u"validator_src_address",b"validator_src_address"]) -> None: ... +global___MsgBeginRedelegate = MsgBeginRedelegate + +# MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type. +class MsgBeginRedelegateResponse(google.protobuf.message.Message): + 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 : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... +global___MsgBeginRedelegateResponse = MsgBeginRedelegateResponse + +# MsgUndelegate defines a SDK message for performing an undelegation from a +# delegate and a validator. +class MsgUndelegate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DELEGATOR_ADDRESS_FIELD_NUMBER: builtins.int + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + delegator_address: typing.Text = ... + validator_address: typing.Text = ... + @property + def amount(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + def __init__(self, + *, + delegator_address : typing.Text = ..., + validator_address : typing.Text = ..., + amount : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"amount",b"amount"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delegator_address",b"delegator_address",u"validator_address",b"validator_address"]) -> None: ... +global___MsgUndelegate = MsgUndelegate + +# MsgUndelegateResponse defines the Msg/Undelegate response type. +class MsgUndelegateResponse(google.protobuf.message.Message): + 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 : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"completion_time",b"completion_time"]) -> None: ... +global___MsgUndelegateResponse = MsgUndelegateResponse diff --git a/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..e57c081 --- /dev/null +++ b/pyband/proto/cosmos/staking/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,82 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the staking Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateValidator defines a method for creating a new validator. + CreateValidator:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateValidator, + global___MsgCreateValidatorResponse] = ... + + # EditValidator defines a method for editing an existing validator. + EditValidator:grpc.UnaryUnaryMultiCallable[ + global___MsgEditValidator, + global___MsgEditValidatorResponse] = ... + + # Delegate defines a method for performing a delegation of coins + # from a delegator to a validator. + Delegate:grpc.UnaryUnaryMultiCallable[ + global___MsgDelegate, + global___MsgDelegateResponse] = ... + + # BeginRedelegate defines a method for performing a redelegation + # of coins from a delegator and source validator to a destination validator. + BeginRedelegate:grpc.UnaryUnaryMultiCallable[ + global___MsgBeginRedelegate, + global___MsgBeginRedelegateResponse] = ... + + # Undelegate defines a method for performing an undelegation from a + # delegate and a validator. + Undelegate:grpc.UnaryUnaryMultiCallable[ + global___MsgUndelegate, + global___MsgUndelegateResponse] = ... + + +# Msg defines the staking Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateValidator defines a method for creating a new validator. + @abc.abstractmethod + def CreateValidator(self, + request: global___MsgCreateValidator, + context: grpc.ServicerContext, + ) -> global___MsgCreateValidatorResponse: ... + + # EditValidator defines a method for editing an existing validator. + @abc.abstractmethod + def EditValidator(self, + request: global___MsgEditValidator, + context: grpc.ServicerContext, + ) -> global___MsgEditValidatorResponse: ... + + # Delegate defines a method for performing a delegation of coins + # from a delegator to a validator. + @abc.abstractmethod + def Delegate(self, + request: global___MsgDelegate, + context: grpc.ServicerContext, + ) -> global___MsgDelegateResponse: ... + + # BeginRedelegate defines a method for performing a redelegation + # of coins from a delegator and source validator to a destination validator. + @abc.abstractmethod + def BeginRedelegate(self, + request: global___MsgBeginRedelegate, + context: grpc.ServicerContext, + ) -> global___MsgBeginRedelegateResponse: ... + + # Undelegate defines a method for performing an undelegation from a + # delegate and a validator. + @abc.abstractmethod + def Undelegate(self, + request: global___MsgUndelegate, + context: grpc.ServicerContext, + ) -> global___MsgUndelegateResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi new file mode 100644 index 0000000..a32bc5d --- /dev/null +++ b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2.pyi @@ -0,0 +1,149 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# SignMode represents a signing mode with its own security guarantees. +class SignMode(_SignMode, metaclass=_SignModeEnumTypeWrapper): + pass +class _SignMode: + V = typing.NewType('V', builtins.int) +class _SignModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignMode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be + # rejected + SIGN_MODE_UNSPECIFIED = SignMode.V(0) + # SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is + # verified with raw bytes from Tx + SIGN_MODE_DIRECT = SignMode.V(1) + # 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 + SIGN_MODE_TEXTUAL = SignMode.V(2) + # SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses + # Amino JSON and will be removed in the future + SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) + +# SIGN_MODE_UNSPECIFIED specifies an unknown signing mode and will be +# rejected +SIGN_MODE_UNSPECIFIED = SignMode.V(0) +# SIGN_MODE_DIRECT specifies a signing mode which uses SignDoc and is +# verified with raw bytes from Tx +SIGN_MODE_DIRECT = SignMode.V(1) +# 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 +SIGN_MODE_TEXTUAL = SignMode.V(2) +# SIGN_MODE_LEGACY_AMINO_JSON is a backwards compatibility mode which uses +# Amino JSON and will be removed in the future +SIGN_MODE_LEGACY_AMINO_JSON = SignMode.V(127) +global___SignMode = SignMode + + +# SignatureDescriptors wraps multiple SignatureDescriptor's. +class SignatureDescriptors(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURES_FIELD_NUMBER: builtins.int + # signatures are the signature descriptors + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor]: ... + def __init__(self, + *, + signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signatures",b"signatures"]) -> None: ... +global___SignatureDescriptors = SignatureDescriptors + +# 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. +class SignatureDescriptor(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Data represents signature data + class Data(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # Single is the signature data for a single signer + class Single(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODE_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + # mode is the signing mode of the single signer + mode: global___SignMode.V = ... + # signature is the raw signature bytes + signature: builtins.bytes = ... + def __init__(self, + *, + mode : global___SignMode.V = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"signature",b"signature"]) -> None: ... + + # Multi is the signature data for a multisig public key + class Multi(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BITARRAY_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + # bitarray specifies which keys within the multisig are signing + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... + # signatures is the signatures of the multi-signature + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignatureDescriptor.Data]: ... + def __init__(self, + *, + bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., + signatures : typing.Optional[typing.Iterable[global___SignatureDescriptor.Data]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"signatures",b"signatures"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + # single represents a single signer + @property + def single(self) -> global___SignatureDescriptor.Data.Single: ... + # multi represents a multisig signer + @property + def multi(self) -> global___SignatureDescriptor.Data.Multi: ... + def __init__(self, + *, + single : typing.Optional[global___SignatureDescriptor.Data.Single] = ..., + multi : typing.Optional[global___SignatureDescriptor.Data.Multi] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... + + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # public_key is the public key of the signer + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + @property + def data(self) -> global___SignatureDescriptor.Data: ... + # 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. + sequence: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + data : typing.Optional[global___SignatureDescriptor.Data] = ..., + sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... +global___SignatureDescriptor = SignatureDescriptor diff --git a/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi new file mode 100644 index 0000000..2556fdb --- /dev/null +++ b/pyband/proto/cosmos/tx/signing/v1beta1/signing_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .signing_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi new file mode 100644 index 0000000..69285cf --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/service_pb2.pyi @@ -0,0 +1,231 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# OrderBy defines the sorting order +class OrderBy(_OrderBy, metaclass=_OrderByEnumTypeWrapper): + pass +class _OrderBy: + V = typing.NewType('V', builtins.int) +class _OrderByEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_OrderBy.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. + ORDER_BY_UNSPECIFIED = OrderBy.V(0) + # ORDER_BY_ASC defines ascending order + ORDER_BY_ASC = OrderBy.V(1) + # ORDER_BY_DESC defines descending order + ORDER_BY_DESC = OrderBy.V(2) + +# ORDER_BY_UNSPECIFIED specifies an unknown sorting order. OrderBy defaults to ASC in this case. +ORDER_BY_UNSPECIFIED = OrderBy.V(0) +# ORDER_BY_ASC defines ascending order +ORDER_BY_ASC = OrderBy.V(1) +# ORDER_BY_DESC defines descending order +ORDER_BY_DESC = OrderBy.V(2) +global___OrderBy = OrderBy + + +# BroadcastMode specifies the broadcast mode for the TxService.Broadcast RPC method. +class BroadcastMode(_BroadcastMode, metaclass=_BroadcastModeEnumTypeWrapper): + pass +class _BroadcastMode: + V = typing.NewType('V', builtins.int) +class _BroadcastModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BroadcastMode.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # zero-value for mode ordering + BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) + # BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for + # the tx to be committed in a block. + BROADCAST_MODE_BLOCK = BroadcastMode.V(1) + # BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for + # a CheckTx execution response only. + BROADCAST_MODE_SYNC = BroadcastMode.V(2) + # BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns + # immediately. + BROADCAST_MODE_ASYNC = BroadcastMode.V(3) + +# zero-value for mode ordering +BROADCAST_MODE_UNSPECIFIED = BroadcastMode.V(0) +# BROADCAST_MODE_BLOCK defines a tx broadcasting mode where the client waits for +# the tx to be committed in a block. +BROADCAST_MODE_BLOCK = BroadcastMode.V(1) +# BROADCAST_MODE_SYNC defines a tx broadcasting mode where the client waits for +# a CheckTx execution response only. +BROADCAST_MODE_SYNC = BroadcastMode.V(2) +# BROADCAST_MODE_ASYNC defines a tx broadcasting mode where the client returns +# immediately. +BROADCAST_MODE_ASYNC = BroadcastMode.V(3) +global___BroadcastMode = BroadcastMode + + +# GetTxsEventRequest is the request type for the Service.TxsByEvents +# RPC method. +class GetTxsEventRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EVENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + ORDER_BY_FIELD_NUMBER: builtins.int + # events is the list of transaction event type. + @property + def events(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # pagination defines an pagination for the request. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + order_by: global___OrderBy.V = ... + def __init__(self, + *, + events : typing.Optional[typing.Iterable[typing.Text]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageRequest] = ..., + order_by : global___OrderBy.V = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events",u"order_by",b"order_by",u"pagination",b"pagination"]) -> None: ... +global___GetTxsEventRequest = GetTxsEventRequest + +# GetTxsEventResponse is the response type for the Service.TxsByEvents +# RPC method. +class GetTxsEventResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TXS_FIELD_NUMBER: builtins.int + TX_RESPONSES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # txs is the list of queried transactions. + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.tx.v1beta1.tx_pb2.Tx]: ... + # tx_responses is the list of queried TxResponses. + @property + def tx_responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]: ... + # pagination defines an pagination for the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + txs : typing.Optional[typing.Iterable[cosmos.tx.v1beta1.tx_pb2.Tx]] = ..., + tx_responses : typing.Optional[typing.Iterable[cosmos.base.abci.v1beta1.abci_pb2.TxResponse]] = ..., + 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"pagination",b"pagination",u"tx_responses",b"tx_responses",u"txs",b"txs"]) -> None: ... +global___GetTxsEventResponse = GetTxsEventResponse + +# BroadcastTxRequest is the request type for the Service.BroadcastTxRequest +# RPC method. +class BroadcastTxRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_BYTES_FIELD_NUMBER: builtins.int + MODE_FIELD_NUMBER: builtins.int + # tx_bytes is the raw transaction. + tx_bytes: builtins.bytes = ... + mode: global___BroadcastMode.V = ... + def __init__(self, + *, + tx_bytes : builtins.bytes = ..., + mode : global___BroadcastMode.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode",u"tx_bytes",b"tx_bytes"]) -> None: ... +global___BroadcastTxRequest = BroadcastTxRequest + +# BroadcastTxResponse is the response type for the +# Service.BroadcastTx method. +class BroadcastTxResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_RESPONSE_FIELD_NUMBER: builtins.int + # tx_response is the queried TxResponses. + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... + def __init__(self, + *, + tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx_response",b"tx_response"]) -> None: ... +global___BroadcastTxResponse = BroadcastTxResponse + +# SimulateRequest is the request type for the Service.Simulate +# RPC method. +class SimulateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + TX_BYTES_FIELD_NUMBER: builtins.int + # tx is the transaction to simulate. + # Deprecated. Send raw tx bytes instead. + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... + # tx_bytes is the raw transaction. + tx_bytes: builtins.bytes = ... + def __init__(self, + *, + tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., + tx_bytes : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_bytes",b"tx_bytes"]) -> None: ... +global___SimulateRequest = SimulateRequest + +# SimulateResponse is the response type for the +# Service.SimulateRPC method. +class SimulateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + GAS_INFO_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # gas_info is the information about gas used in the simulation. + @property + def gas_info(self) -> cosmos.base.abci.v1beta1.abci_pb2.GasInfo: ... + # result is the result of the simulation. + @property + def result(self) -> cosmos.base.abci.v1beta1.abci_pb2.Result: ... + def __init__(self, + *, + gas_info : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.GasInfo] = ..., + result : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"gas_info",b"gas_info",u"result",b"result"]) -> None: ... +global___SimulateResponse = SimulateResponse + +# GetTxRequest is the request type for the Service.GetTx +# RPC method. +class GetTxRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash is the tx hash to query, encoded as a hex string. + hash: typing.Text = ... + def __init__(self, + *, + hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___GetTxRequest = GetTxRequest + +# GetTxResponse is the response type for the Service.GetTx method. +class GetTxResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TX_FIELD_NUMBER: builtins.int + TX_RESPONSE_FIELD_NUMBER: builtins.int + # tx is the queried transaction. + @property + def tx(self) -> cosmos.tx.v1beta1.tx_pb2.Tx: ... + # tx_response is the queried TxResponses. + @property + def tx_response(self) -> cosmos.base.abci.v1beta1.abci_pb2.TxResponse: ... + def __init__(self, + *, + tx : typing.Optional[cosmos.tx.v1beta1.tx_pb2.Tx] = ..., + tx_response : typing.Optional[cosmos.base.abci.v1beta1.abci_pb2.TxResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"tx_response",b"tx_response"]) -> None: ... +global___GetTxResponse = GetTxResponse diff --git a/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi new file mode 100644 index 0000000..0944b29 --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/service_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .service_pb2 import * +# Service defines a gRPC service for interacting with transactions. +class ServiceStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Simulate simulates executing a transaction for estimating gas usage. + Simulate:grpc.UnaryUnaryMultiCallable[ + global___SimulateRequest, + global___SimulateResponse] = ... + + # GetTx fetches a tx by hash. + GetTx:grpc.UnaryUnaryMultiCallable[ + global___GetTxRequest, + global___GetTxResponse] = ... + + # BroadcastTx broadcast transaction. + BroadcastTx:grpc.UnaryUnaryMultiCallable[ + global___BroadcastTxRequest, + global___BroadcastTxResponse] = ... + + # GetTxsEvent fetches txs by event. + GetTxsEvent:grpc.UnaryUnaryMultiCallable[ + global___GetTxsEventRequest, + global___GetTxsEventResponse] = ... + + +# Service defines a gRPC service for interacting with transactions. +class ServiceServicer(metaclass=abc.ABCMeta): + # Simulate simulates executing a transaction for estimating gas usage. + @abc.abstractmethod + def Simulate(self, + request: global___SimulateRequest, + context: grpc.ServicerContext, + ) -> global___SimulateResponse: ... + + # GetTx fetches a tx by hash. + @abc.abstractmethod + def GetTx(self, + request: global___GetTxRequest, + context: grpc.ServicerContext, + ) -> global___GetTxResponse: ... + + # BroadcastTx broadcast transaction. + @abc.abstractmethod + def BroadcastTx(self, + request: global___BroadcastTxRequest, + context: grpc.ServicerContext, + ) -> global___BroadcastTxResponse: ... + + # GetTxsEvent fetches txs by event. + @abc.abstractmethod + def GetTxsEvent(self, + request: global___GetTxsEventRequest, + context: grpc.ServicerContext, + ) -> global___GetTxsEventResponse: ... + + +def add_ServiceServicer_to_server(servicer: ServiceServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..556d2ad --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/tx_pb2.pyi @@ -0,0 +1,293 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# Tx is the standard type used for broadcasting transactions. +class Tx(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BODY_FIELD_NUMBER: builtins.int + AUTH_INFO_FIELD_NUMBER: builtins.int + SIGNATURES_FIELD_NUMBER: builtins.int + # body is the processable content of the transaction + @property + def body(self) -> global___TxBody: ... + # auth_info is the authorization related content of the transaction, + # specifically signers, signer modes and fee + @property + def auth_info(self) -> global___AuthInfo: ... + # 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. + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + body : typing.Optional[global___TxBody] = ..., + auth_info : typing.Optional[global___AuthInfo] = ..., + signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"auth_info",b"auth_info",u"body",b"body",u"signatures",b"signatures"]) -> None: ... +global___Tx = Tx + +# 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. +class TxRaw(google.protobuf.message.Message): + 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 is a protobuf serialization of a TxBody that matches the + # representation in SignDoc. + body_bytes: builtins.bytes = ... + # auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + # representation in SignDoc. + auth_info_bytes: 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. + @property + def signatures(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + body_bytes : builtins.bytes = ..., + auth_info_bytes : builtins.bytes = ..., + signatures : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"signatures",b"signatures"]) -> None: ... +global___TxRaw = TxRaw + +# SignDoc is the type used for generating sign bytes for SIGN_MODE_DIRECT. +class SignDoc(google.protobuf.message.Message): + 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 is protobuf serialization of a TxBody that matches the + # representation in TxRaw. + body_bytes: builtins.bytes = ... + # auth_info_bytes is a protobuf serialization of an AuthInfo that matches the + # representation in TxRaw. + auth_info_bytes: builtins.bytes = ... + # 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 + chain_id: typing.Text = ... + # account_number is the account number of the account in state + account_number: builtins.int = ... + def __init__(self, + *, + body_bytes : builtins.bytes = ..., + auth_info_bytes : builtins.bytes = ..., + chain_id : typing.Text = ..., + account_number : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"account_number",b"account_number",u"auth_info_bytes",b"auth_info_bytes",u"body_bytes",b"body_bytes",u"chain_id",b"chain_id"]) -> None: ... +global___SignDoc = SignDoc + +# TxBody is the body of a transaction that all signers sign over. +class TxBody(google.protobuf.message.Message): + 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 + # 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. + @property + def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + # 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). + memo: typing.Text = ... + # timeout is the block height after which this transaction will not + # be processed by the chain + timeout_height: builtins.int = ... + # 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 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 + @property + def non_critical_extension_options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + messages : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + memo : typing.Text = ..., + timeout_height : builtins.int = ..., + extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + non_critical_extension_options : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"extension_options",b"extension_options",u"memo",b"memo",u"messages",b"messages",u"non_critical_extension_options",b"non_critical_extension_options",u"timeout_height",b"timeout_height"]) -> None: ... +global___TxBody = TxBody + +# AuthInfo describes the fee and signer modes that are used to sign a +# transaction. +class AuthInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNER_INFOS_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + # 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 signer_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SignerInfo]: ... + # 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 fee(self) -> global___Fee: ... + def __init__(self, + *, + signer_infos : typing.Optional[typing.Iterable[global___SignerInfo]] = ..., + fee : typing.Optional[global___Fee] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"fee",b"fee"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fee",b"fee",u"signer_infos",b"signer_infos"]) -> None: ... +global___AuthInfo = AuthInfo + +# SignerInfo describes the public key and signing mode of a single top-level +# signer. +class SignerInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + MODE_INFO_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # 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 public_key(self) -> google.protobuf.any_pb2.Any: ... + # mode_info describes the signing mode of the signer and is a nested + # structure to support nested multisig pubkey's + @property + def mode_info(self) -> global___ModeInfo: ... + # 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. + sequence: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + mode_info : typing.Optional[global___ModeInfo] = ..., + sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode_info",b"mode_info",u"public_key",b"public_key",u"sequence",b"sequence"]) -> None: ... +global___SignerInfo = SignerInfo + +# ModeInfo describes the signing mode of a single or nested multisig signer. +class ModeInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + # 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 + class Single(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODE_FIELD_NUMBER: builtins.int + # mode is the signing mode of the single signer + mode: cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ... + def __init__(self, + *, + mode : cosmos.tx.signing.v1beta1.signing_pb2.SignMode.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"mode",b"mode"]) -> None: ... + + # Multi is the mode info for a multisig public key + class Multi(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + BITARRAY_FIELD_NUMBER: builtins.int + MODE_INFOS_FIELD_NUMBER: builtins.int + # bitarray specifies which keys within the multisig are signing + @property + def bitarray(self) -> cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray: ... + # mode_infos is the corresponding modes of the signers of the multisig + # which could include nested multisig public keys + @property + def mode_infos(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ModeInfo]: ... + def __init__(self, + *, + bitarray : typing.Optional[cosmos.crypto.multisig.v1beta1.multisig_pb2.CompactBitArray] = ..., + mode_infos : typing.Optional[typing.Iterable[global___ModeInfo]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bitarray",b"bitarray",u"mode_infos",b"mode_infos"]) -> None: ... + + SINGLE_FIELD_NUMBER: builtins.int + MULTI_FIELD_NUMBER: builtins.int + # single represents a single signer + @property + def single(self) -> global___ModeInfo.Single: ... + # multi represents a nested multisig signer + @property + def multi(self) -> global___ModeInfo.Multi: ... + def __init__(self, + *, + single : typing.Optional[global___ModeInfo.Single] = ..., + multi : typing.Optional[global___ModeInfo.Multi] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multi",b"multi",u"single",b"single",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["single","multi"]]: ... +global___ModeInfo = ModeInfo + +# 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. +class Fee(google.protobuf.message.Message): + 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 + # amount is the amount of coins to be paid as a fee + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # gas_limit is the maximum gas that can be used in transaction processing + # before an out of gas error occurs + gas_limit: builtins.int = ... + # 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. + payer: typing.Text = ... + # 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 + granter: typing.Text = ... + def __init__(self, + *, + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + gas_limit : builtins.int = ..., + payer : typing.Text = ..., + granter : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"gas_limit",b"gas_limit",u"granter",b"granter",u"payer",b"payer"]) -> None: ... +global___Fee = Fee diff --git a/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..e636386 --- /dev/null +++ b/pyband/proto/cosmos/tx/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .tx_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi new file mode 100644 index 0000000..ecb7bf7 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2.pyi @@ -0,0 +1,124 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.upgrade.v1beta1.upgrade_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryCurrentPlanRequest is the request type for the Query/CurrentPlan RPC +# method. +class QueryCurrentPlanRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCurrentPlanRequest = QueryCurrentPlanRequest + +# QueryCurrentPlanResponse is the response type for the Query/CurrentPlan RPC +# method. +class QueryCurrentPlanResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PLAN_FIELD_NUMBER: builtins.int + # plan is the current upgrade plan. + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ... + def __init__(self, + *, + plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> None: ... +global___QueryCurrentPlanResponse = QueryCurrentPlanResponse + +# QueryCurrentPlanRequest is the request type for the Query/AppliedPlan RPC +# method. +class QueryAppliedPlanRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + # name is the name of the applied plan to query for. + name: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name"]) -> None: ... +global___QueryAppliedPlanRequest = QueryAppliedPlanRequest + +# QueryAppliedPlanResponse is the response type for the Query/AppliedPlan RPC +# method. +class QueryAppliedPlanResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + # height is the block height at which the plan was applied. + height: builtins.int = ... + def __init__(self, + *, + height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> None: ... +global___QueryAppliedPlanResponse = QueryAppliedPlanResponse + +# QueryUpgradedConsensusStateRequest is the request type for the Query/UpgradedConsensusState +# RPC method. +class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LAST_HEIGHT_FIELD_NUMBER: 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 + last_height: builtins.int = ... + def __init__(self, + *, + last_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"last_height",b"last_height"]) -> None: ... +global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest + +# QueryUpgradedConsensusStateResponse is the response type for the Query/UpgradedConsensusState +# RPC method. +class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + upgraded_consensus_state: builtins.bytes = ... + def __init__(self, + *, + upgraded_consensus_state : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ... +global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse + +# QueryModuleVersionsRequest is the request type for the Query/ModuleVersions +# RPC method. +class QueryModuleVersionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_NAME_FIELD_NUMBER: builtins.int + # 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 + module_name: typing.Text = ... + def __init__(self, + *, + module_name : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module_name",b"module_name"]) -> None: ... +global___QueryModuleVersionsRequest = QueryModuleVersionsRequest + +# QueryModuleVersionsResponse is the response type for the Query/ModuleVersions +# RPC method. +class QueryModuleVersionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MODULE_VERSIONS_FIELD_NUMBER: builtins.int + # module_versions is a list of module names with their consensus versions. + @property + def module_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]: ... + def __init__(self, + *, + module_versions : typing.Optional[typing.Iterable[cosmos.upgrade.v1beta1.upgrade_pb2.ModuleVersion]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"module_versions",b"module_versions"]) -> None: ... +global___QueryModuleVersionsResponse = QueryModuleVersionsResponse diff --git a/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi new file mode 100644 index 0000000..3de1341 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/query_pb2_grpc.pyi @@ -0,0 +1,70 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query defines the gRPC upgrade querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CurrentPlan queries the current upgrade plan. + CurrentPlan:grpc.UnaryUnaryMultiCallable[ + global___QueryCurrentPlanRequest, + global___QueryCurrentPlanResponse] = ... + + # AppliedPlan queries a previously applied upgrade plan by its name. + AppliedPlan:grpc.UnaryUnaryMultiCallable[ + global___QueryAppliedPlanRequest, + global___QueryAppliedPlanResponse] = ... + + # 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 + UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedConsensusStateRequest, + global___QueryUpgradedConsensusStateResponse] = ... + + # ModuleVersions queries the list of module versions from state. + ModuleVersions:grpc.UnaryUnaryMultiCallable[ + global___QueryModuleVersionsRequest, + global___QueryModuleVersionsResponse] = ... + + +# Query defines the gRPC upgrade querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # CurrentPlan queries the current upgrade plan. + @abc.abstractmethod + def CurrentPlan(self, + request: global___QueryCurrentPlanRequest, + context: grpc.ServicerContext, + ) -> global___QueryCurrentPlanResponse: ... + + # AppliedPlan queries a previously applied upgrade plan by its name. + @abc.abstractmethod + def AppliedPlan(self, + request: global___QueryAppliedPlanRequest, + context: grpc.ServicerContext, + ) -> global___QueryAppliedPlanResponse: ... + + # 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 + @abc.abstractmethod + def UpgradedConsensusState(self, + request: global___QueryUpgradedConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedConsensusStateResponse: ... + + # ModuleVersions queries the list of module versions from state. + @abc.abstractmethod + def ModuleVersions(self, + request: global___QueryModuleVersionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryModuleVersionsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi new file mode 100644 index 0000000..bf622b1 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2.pyi @@ -0,0 +1,111 @@ +""" +@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 = ... + +# Plan specifies information about a planned upgrade and when it should occur. +class Plan(google.protobuf.message.Message): + 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 + # 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. + name: typing.Text = ... + # 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. + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # The height at which the upgrade must be performed. + # Only used if Time is not set. + height: builtins.int = ... + # Any application specific upgrade info to be included on-chain + # such as a git commit that validators could automatically upgrade to + info: typing.Text = ... + # 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. + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + name : typing.Text = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + height : builtins.int = ..., + info : typing.Text = ..., + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"info",b"info",u"name",b"name",u"time",b"time",u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___Plan = Plan + +# SoftwareUpgradeProposal is a gov Content type for initiating a software +# upgrade. +class SoftwareUpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def plan(self) -> global___Plan: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + plan : typing.Optional[global___Plan] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"plan",b"plan",u"title",b"title"]) -> None: ... +global___SoftwareUpgradeProposal = SoftwareUpgradeProposal + +# CancelSoftwareUpgradeProposal is a gov Content type for cancelling a software +# upgrade. +class CancelSoftwareUpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"title",b"title"]) -> None: ... +global___CancelSoftwareUpgradeProposal = CancelSoftwareUpgradeProposal + +# ModuleVersion specifies a module and its consensus version. +class ModuleVersion(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + # name of the app module + name: typing.Text = ... + # consensus version of the app module + version: builtins.int = ... + def __init__(self, + *, + name : typing.Text = ..., + version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"name",b"name",u"version",b"version"]) -> None: ... +global___ModuleVersion = ModuleVersion diff --git a/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi new file mode 100644 index 0000000..dec3ec0 --- /dev/null +++ b/pyband/proto/cosmos/upgrade/v1beta1/upgrade_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .upgrade_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi new file mode 100644 index 0000000..a6a9853 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2.pyi @@ -0,0 +1,46 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateVestingAccount defines a message that enables creating a vesting +# account. +class MsgCreateVestingAccount(google.protobuf.message.Message): + 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: typing.Text = ... + to_address: typing.Text = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + end_time: builtins.int = ... + delayed: builtins.bool = ... + def __init__(self, + *, + from_address : typing.Text = ..., + to_address : typing.Text = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + end_time : builtins.int = ..., + delayed : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"delayed",b"delayed",u"end_time",b"end_time",u"from_address",b"from_address",u"to_address",b"to_address"]) -> None: ... +global___MsgCreateVestingAccount = MsgCreateVestingAccount + +# MsgCreateVestingAccountResponse defines the Msg/CreateVestingAccount response type. +class MsgCreateVestingAccountResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateVestingAccountResponse = MsgCreateVestingAccountResponse diff --git a/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..0652b42 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/tx_pb2_grpc.pyi @@ -0,0 +1,30 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the bank Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateVestingAccount defines a method that enables creating a vesting + # account. + CreateVestingAccount:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateVestingAccount, + global___MsgCreateVestingAccountResponse] = ... + + +# Msg defines the bank Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateVestingAccount defines a method that enables creating a vesting + # account. + @abc.abstractmethod + def CreateVestingAccount(self, + request: global___MsgCreateVestingAccount, + context: grpc.ServicerContext, + ) -> global___MsgCreateVestingAccountResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi new file mode 100644 index 0000000..63dac72 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2.pyi @@ -0,0 +1,132 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BaseVestingAccount implements the VestingAccount interface. It contains all +# the necessary fields needed for any vesting account implementation. +class BaseVestingAccount(google.protobuf.message.Message): + 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 = ... + def __init__(self, + *, + base_account : typing.Optional[cosmos.auth.v1beta1.auth_pb2.BaseAccount] = ..., + original_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + delegated_free : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + delegated_vesting : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + end_time : builtins.int = ..., + ) -> 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"delegated_free",b"delegated_free",u"delegated_vesting",b"delegated_vesting",u"end_time",b"end_time",u"original_vesting",b"original_vesting"]) -> None: ... +global___BaseVestingAccount = BaseVestingAccount + +# ContinuousVestingAccount implements the VestingAccount interface. It +# continuously vests by unlocking coins linearly with respect to time. +class ContinuousVestingAccount(google.protobuf.message.Message): + 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 = ... + def __init__(self, + *, + base_vesting_account : typing.Optional[global___BaseVestingAccount] = ..., + start_time : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time"]) -> None: ... +global___ContinuousVestingAccount = ContinuousVestingAccount + +# 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. +class DelayedVestingAccount(google.protobuf.message.Message): + 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 : typing.Optional[global___BaseVestingAccount] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> None: ... +global___DelayedVestingAccount = DelayedVestingAccount + +# Period defines a length of time and amount of coins that will vest. +class Period(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + LENGTH_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + length: builtins.int = ... + @property + def amount(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + length : builtins.int = ..., + amount : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"length",b"length"]) -> None: ... +global___Period = Period + +# PeriodicVestingAccount implements the VestingAccount interface. It +# periodically vests by unlocking coins during each specified period. +class PeriodicVestingAccount(google.protobuf.message.Message): + 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 : typing.Optional[global___BaseVestingAccount] = ..., + start_time : builtins.int = ..., + vesting_periods : typing.Optional[typing.Iterable[global___Period]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account",u"start_time",b"start_time",u"vesting_periods",b"vesting_periods"]) -> None: ... +global___PeriodicVestingAccount = PeriodicVestingAccount + +# 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. +class PermanentLockedAccount(google.protobuf.message.Message): + 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 : typing.Optional[global___BaseVestingAccount] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_vesting_account",b"base_vesting_account"]) -> None: ... +global___PermanentLockedAccount = PermanentLockedAccount diff --git a/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi new file mode 100644 index 0000000..d6046c2 --- /dev/null +++ b/pyband/proto/cosmos/vesting/v1beta1/vesting_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .vesting_pb2 import * \ No newline at end of file diff --git a/pyband/proto/cosmos_proto/cosmos_pb2.pyi b/pyband/proto/cosmos_proto/cosmos_pb2.pyi new file mode 100644 index 0000000..3a4a20d --- /dev/null +++ b/pyband/proto/cosmos_proto/cosmos_pb2.pyi @@ -0,0 +1,16 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import google.protobuf.descriptor +import google.protobuf.descriptor_pb2 +import google.protobuf.internal.extension_dict +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +interface_type: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] = ... + +implements_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MessageOptions, typing.Text] = ... + +accepts_interface: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... diff --git a/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi b/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi new file mode 100644 index 0000000..e813185 --- /dev/null +++ b/pyband/proto/cosmos_proto/cosmos_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .cosmos_pb2 import * \ No newline at end of file diff --git a/pyband/proto/gogoproto/gogo_pb2.pyi b/pyband/proto/gogoproto/gogo_pb2.pyi new file mode 100644 index 0000000..24190df --- /dev/null +++ b/pyband/proto/gogoproto/gogo_pb2.pyi @@ -0,0 +1,165 @@ +""" +@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 +import typing + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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, typing.Text] = ... + +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, typing.Text] = ... + +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, typing.Text] = ... + +customname: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +jsontag: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +moretags: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +casttype: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +castkey: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +castvalue: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.FieldOptions, typing.Text] = ... + +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, typing.Text] = ... diff --git a/pyband/proto/gogoproto/gogo_pb2_grpc.pyi b/pyband/proto/gogoproto/gogo_pb2_grpc.pyi new file mode 100644 index 0000000..a66f997 --- /dev/null +++ b/pyband/proto/gogoproto/gogo_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .gogo_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/annotations_pb2.pyi b/pyband/proto/google/api/annotations_pb2.pyi new file mode 100644 index 0000000..06f08a0 --- /dev/null +++ b/pyband/proto/google/api/annotations_pb2.pyi @@ -0,0 +1,13 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +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 = ... + +# See `HttpRule`. +http: google.protobuf.internal.extension_dict._ExtensionFieldDescriptor[google.protobuf.descriptor_pb2.MethodOptions, google.api.http_pb2.HttpRule] = ... diff --git a/pyband/proto/google/api/annotations_pb2_grpc.pyi b/pyband/proto/google/api/annotations_pb2_grpc.pyi new file mode 100644 index 0000000..cfe981e --- /dev/null +++ b/pyband/proto/google/api/annotations_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .annotations_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/http_pb2.pyi b/pyband/proto/google/api/http_pb2.pyi new file mode 100644 index 0000000..127db80 --- /dev/null +++ b/pyband/proto/google/api/http_pb2.pyi @@ -0,0 +1,337 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# 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. +class Http(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RULES_FIELD_NUMBER: builtins.int + FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: builtins.int + # A list of HTTP configuration rules that apply to individual API methods. + # + # **NOTE:** All service configuration rules follow "last one wins" order. + @property + def rules(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... + # When set to true, URL path parmeters 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. + fully_decode_reserved_expansion: builtins.bool = ... + def __init__(self, + *, + rules : typing.Optional[typing.Iterable[global___HttpRule]] = ..., + fully_decode_reserved_expansion : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"fully_decode_reserved_expansion",b"fully_decode_reserved_expansion",u"rules",b"rules"]) -> None: ... +global___Http = Http + +# `HttpRule` defines the mapping of an RPC method to one or more HTTP +# REST API methods. The mapping specifies how different portions of the RPC +# request message are mapped to URL path, URL query parameters, and +# HTTP request body. The mapping is typically specified as an +# `google.api.http` annotation on the RPC method, +# see "google/api/annotations.proto" for details. +# +# The mapping consists of a field specifying the path template and +# method kind. The path template can refer to fields in the request +# message, as in the example below which describes a REST GET +# operation on a resource collection of messages: +# +# +# service Messaging { +# rpc GetMessage(GetMessageRequest) returns (Message) { +# option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; +# } +# } +# message GetMessageRequest { +# message SubMessage { +# string subfield = 1; +# } +# string message_id = 1; // mapped to the URL +# SubMessage sub = 2; // `sub.subfield` is url-mapped +# } +# message Message { +# string text = 1; // content of the resource +# } +# +# The same http annotation can alternatively be expressed inside the +# `GRPC API Configuration` YAML file. +# +# http: +# rules: +# - selector: .Messaging.GetMessage +# get: /v1/messages/{message_id}/{sub.subfield} +# +# This definition enables an automatic, bidrectional mapping of HTTP +# JSON to RPC. Example: +# +# HTTP | RPC +# -----|----- +# `GET /v1/messages/123456/foo` | `GetMessage(message_id: "123456" sub: SubMessage(subfield: "foo"))` +# +# In general, not only fields but also field paths can be referenced +# from a path pattern. Fields mapped to the path pattern cannot be +# repeated and must have a primitive (non-message) type. +# +# Any fields in the request message which are not bound by the path +# pattern automatically become (optional) HTTP query +# parameters. Assume the following definition of the request message: +# +# +# 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 the URL +# int64 revision = 2; // becomes a parameter +# SubMessage sub = 3; // `sub.subfield` becomes a parameter +# } +# +# +# This enables a HTTP JSON to RPC mapping as below: +# +# HTTP | RPC +# -----|----- +# `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 HTTP parameters must have a +# primitive type or a repeated primitive type. Message types are not +# allowed. In the case of a repeated type, the parameter can be +# repeated in the URL, as in `...?param=A¶m=B`. +# +# For HTTP method kinds which 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) = { +# put: "/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 | RPC +# -----|----- +# `PUT /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) = { +# put: "/v1/messages/{message_id}" +# body: "*" +# }; +# } +# } +# message Message { +# string message_id = 1; +# string text = 2; +# } +# +# +# The following HTTP JSON to RPC mapping is enabled: +# +# HTTP | RPC +# -----|----- +# `PUT /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 of +# 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 | RPC +# -----|----- +# `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 +# +# The rules for mapping HTTP path, query parameters, and body fields +# to the request message are as follows: +# +# 1. The `body` field specifies either `*` or a field path, or is +# omitted. If omitted, it indicates there is no HTTP request body. +# 2. Leaf fields (recursive expansion of nested messages in the +# request) can be classified into three types: +# (a) Matched in the URL template. +# (b) Covered by body (if body is `*`, everything except (a) fields; +# else everything under the body field) +# (c) All other fields. +# 3. URL query parameters found in the HTTP request are mapped to (c) fields. +# 4. Any body sent with an HTTP request can contain only (b) fields. +# +# The syntax of the path template is as follows: +# +# Template = "/" Segments [ Verb ] ; +# Segments = Segment { "/" Segment } ; +# Segment = "*" | "**" | LITERAL | Variable ; +# Variable = "{" FieldPath [ "=" Segments ] "}" ; +# FieldPath = IDENT { "." IDENT } ; +# Verb = ":" LITERAL ; +# +# The syntax `*` matches a single path segment. The syntax `**` matches zero +# or more path segments, which must be the last part of the path except the +# `Verb`. The syntax `LITERAL` matches literal text in the path. +# +# 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=*}`. +# +# If a variable contains exactly one path segment, such as `"{var}"` or +# `"{var=*}"`, when such a variable is expanded into a URL path, all characters +# except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the +# Discovery Document as `{var}`. +# +# If a variable contains one or more path segments, such as `"{var=foo/*}"` +# or `"{var=**}"`, when such a variable is expanded into a URL path, all +# characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables +# show up in the Discovery Document as `{+var}`. +# +# NOTE: While the single segment variable matches the semantics of +# [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 +# Simple String Expansion, the multi segment variable **does not** match +# RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion +# does not expand special characters like `?` and `#`, which would lead +# to invalid URLs. +# +# NOTE: the field paths in variables and in the `body` must not refer to +# repeated fields or map fields. +class HttpRule(google.protobuf.message.Message): + 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 + # Selects methods to which this rule applies. + # + # Refer to [selector][google.api.DocumentationRule.selector] for syntax details. + selector: typing.Text = ... + # Used for listing and getting information about resources. + get: typing.Text = ... + # Used for updating a resource. + put: typing.Text = ... + # Used for creating a resource. + post: typing.Text = ... + # Used for deleting a resource. + delete: typing.Text = ... + # Used for updating a resource. + patch: typing.Text = ... + # 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. + @property + def custom(self) -> global___CustomHttpPattern: ... + # The name of the request field whose value is mapped to the HTTP body, or + # `*` for mapping all fields not captured by the path pattern to the HTTP + # body. NOTE: the referred field must not be a repeated field and must be + # present at the top-level of request message type. + body: typing.Text = ... + # Optional. The name of the response field whose value is mapped to the HTTP + # body of response. Other response fields are ignored. When + # not set, the response message will be used as HTTP body of response. + response_body: typing.Text = ... + # 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). + @property + def additional_bindings(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___HttpRule]: ... + def __init__(self, + *, + selector : typing.Text = ..., + get : typing.Text = ..., + put : typing.Text = ..., + post : typing.Text = ..., + delete : typing.Text = ..., + patch : typing.Text = ..., + custom : typing.Optional[global___CustomHttpPattern] = ..., + body : typing.Text = ..., + response_body : typing.Text = ..., + additional_bindings : typing.Optional[typing.Iterable[global___HttpRule]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"additional_bindings",b"additional_bindings",u"body",b"body",u"custom",b"custom",u"delete",b"delete",u"get",b"get",u"patch",b"patch",u"pattern",b"pattern",u"post",b"post",u"put",b"put",u"response_body",b"response_body",u"selector",b"selector"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"pattern",b"pattern"]) -> typing.Optional[typing_extensions.Literal["get","put","post","delete","patch","custom"]]: ... +global___HttpRule = HttpRule + +# A custom pattern is used for defining custom HTTP verb. +class CustomHttpPattern(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KIND_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int + # The name of this custom HTTP verb. + kind: typing.Text = ... + # The path matched by this custom verb. + path: typing.Text = ... + def __init__(self, + *, + kind : typing.Text = ..., + path : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"kind",b"kind",u"path",b"path"]) -> None: ... +global___CustomHttpPattern = CustomHttpPattern diff --git a/pyband/proto/google/api/http_pb2_grpc.pyi b/pyband/proto/google/api/http_pb2_grpc.pyi new file mode 100644 index 0000000..d2c5ab5 --- /dev/null +++ b/pyband/proto/google/api/http_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .http_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/api/httpbody_pb2.pyi b/pyband/proto/google/api/httpbody_pb2.pyi new file mode 100644 index 0000000..0eb6336 --- /dev/null +++ b/pyband/proto/google/api/httpbody_pb2.pyi @@ -0,0 +1,74 @@ +""" +@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 = ... + +# Message that represents an arbitrary HTTP body. It should only be used for +# payload formats that can't be represented as JSON, such as raw binary or +# an HTML page. +# +# +# This message can be used both in streaming and non-streaming API methods in +# the request as well as the response. +# +# It can be used as a top-level request field, which is convenient if one +# wants to extract parameters from either the URL or HTTP template into the +# request fields and also want access to the raw HTTP body. +# +# Example: +# +# message GetResourceRequest { +# // A unique request id. +# string request_id = 1; +# +# // The raw HTTP body is bound to this field. +# google.api.HttpBody http_body = 2; +# } +# +# service ResourceService { +# rpc GetResource(GetResourceRequest) returns (google.api.HttpBody); +# rpc UpdateResource(google.api.HttpBody) returns +# (google.protobuf.Empty); +# } +# +# Example with streaming methods: +# +# service CaldavService { +# rpc GetCalendar(stream google.api.HttpBody) +# returns (stream google.api.HttpBody); +# rpc UpdateCalendar(stream google.api.HttpBody) +# returns (stream google.api.HttpBody); +# } +# +# Use of this type only changes how the request and response bodies are +# handled, all other features will continue to work unchanged. +class HttpBody(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONTENT_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + EXTENSIONS_FIELD_NUMBER: builtins.int + # The HTTP Content-Type header value specifying the content type of the body. + content_type: typing.Text = ... + # The HTTP request/response body as raw binary. + data: builtins.bytes = ... + # Application specific response metadata. Must be set in the first response + # for streaming APIs. + @property + def extensions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[google.protobuf.any_pb2.Any]: ... + def __init__(self, + *, + content_type : typing.Text = ..., + data : builtins.bytes = ..., + extensions : typing.Optional[typing.Iterable[google.protobuf.any_pb2.Any]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"content_type",b"content_type",u"data",b"data",u"extensions",b"extensions"]) -> None: ... +global___HttpBody = HttpBody diff --git a/pyband/proto/google/api/httpbody_pb2_grpc.pyi b/pyband/proto/google/api/httpbody_pb2_grpc.pyi new file mode 100644 index 0000000..3b2bc13 --- /dev/null +++ b/pyband/proto/google/api/httpbody_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .httpbody_pb2 import * \ No newline at end of file diff --git a/pyband/proto/google/protobuf/any_pb2.pyi b/pyband/proto/google/protobuf/any_pb2.pyi new file mode 100644 index 0000000..e7ef520 --- /dev/null +++ b/pyband/proto/google/protobuf/any_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.internal.well_known_types +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# `Any` contains an arbitrary serialized protocol buffer message along with a +# URL that describes the type of the serialized message. +# +# Protobuf library provides support to pack/unpack Any values in the form +# of utility functions or additional generated methods of the Any type. +# +# Example 1: Pack and unpack a message in C++. +# +# Foo foo = ...; +# Any any; +# any.PackFrom(foo); +# ... +# if (any.UnpackTo(&foo)) { +# ... +# } +# +# Example 2: Pack and unpack a message in Java. +# +# Foo foo = ...; +# Any any = Any.pack(foo); +# ... +# if (any.is(Foo.class)) { +# foo = any.unpack(Foo.class); +# } +# +# Example 3: Pack and unpack a message in Python. +# +# foo = Foo(...) +# any = Any() +# any.Pack(foo) +# ... +# if any.Is(Foo.DESCRIPTOR): +# any.Unpack(foo) +# ... +# +# Example 4: Pack and unpack a message in Go +# +# foo := &pb.Foo{...} +# any, err := ptypes.MarshalAny(foo) +# ... +# foo := &pb.Foo{} +# if err := ptypes.UnmarshalAny(any, foo); err != nil { +# ... +# } +# +# The pack methods provided by protobuf library will by default use +# 'type.googleapis.com/full.type.name' as the type URL and the unpack +# methods only use the fully qualified type name after the last '/' +# in the type URL, for example "foo.bar.com/x/y.z" will yield type +# name "y.z". +# +# +# JSON +# ==== +# The JSON representation of an `Any` value uses the regular +# representation of the deserialized, embedded message, with an +# additional field `@type` which contains the type URL. Example: +# +# package google.profile; +# message Person { +# string first_name = 1; +# string last_name = 2; +# } +# +# { +# "@type": "type.googleapis.com/google.profile.Person", +# "firstName": , +# "lastName": +# } +# +# If the embedded message type is well-known and has a custom JSON +# representation, that representation will be embedded adding a field +# `value` which holds the custom JSON in addition to the `@type` +# field. Example (for message [google.protobuf.Duration][]): +# +# { +# "@type": "type.googleapis.com/google.protobuf.Duration", +# "value": "1.212s" +# } +class Any(google.protobuf.message.Message, google.protobuf.internal.well_known_types.Any): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_URL_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + # A URL/resource name that uniquely identifies the type of the serialized + # protocol buffer message. This string must contain at least + # one "/" character. The last segment of the URL's path must represent + # the fully qualified name of the type (as in + # `path/google.protobuf.Duration`). The name should be in a canonical form + # (e.g., leading "." is not accepted). + # + # In practice, teams usually precompile into the binary all types that they + # expect it to use in the context of Any. However, for URLs which use the + # scheme `http`, `https`, or no scheme, one can optionally set up a type + # server that maps type URLs to message definitions as follows: + # + # * If no scheme is provided, `https` is assumed. + # * An HTTP GET on the URL must yield a [google.protobuf.Type][] + # value in binary format, or produce an error. + # * Applications are allowed to cache lookup results based on the + # URL, or have them precompiled into a binary to avoid any + # lookup. Therefore, binary compatibility needs to be preserved + # on changes to types. (Use versioned type names to manage + # breaking changes.) + # + # Note: this functionality is not currently available in the official + # protobuf release, and it is not used for type URLs beginning with + # type.googleapis.com. + # + # Schemes other than `http`, `https` (or the empty scheme) might be + # used with implementation specific semantics. + type_url: typing.Text = ... + # Must be a valid serialized protocol buffer of the above specified type. + value: builtins.bytes = ... + def __init__(self, + *, + type_url : typing.Text = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"type_url",b"type_url",u"value",b"value"]) -> None: ... +global___Any = Any diff --git a/pyband/proto/google/protobuf/any_pb2_grpc.pyi b/pyband/proto/google/protobuf/any_pb2_grpc.pyi new file mode 100644 index 0000000..1fec1ac --- /dev/null +++ b/pyband/proto/google/protobuf/any_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .any_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi new file mode 100644 index 0000000..9d4d5ff --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2.pyi @@ -0,0 +1,34 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.applications.transfer.v1.transfer_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc-transfer genesis state +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + DENOM_TRACES_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + @property + def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... + @property + def params(self) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... + def __init__(self, + *, + port_id : typing.Text = ..., + denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., + params : typing.Optional[ibc.applications.transfer.v1.transfer_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"denom_traces",b"denom_traces",u"params",b"params",u"port_id",b"port_id"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi new file mode 100644 index 0000000..3f693aa --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/query_pb2.pyi @@ -0,0 +1,103 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.base.query.v1beta1.pagination_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.applications.transfer.v1.transfer_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryDenomTraceRequest is the request type for the Query/DenomTrace RPC +# method +class QueryDenomTraceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + # hash (in hex format) of the denomination trace information. + hash: typing.Text = ... + def __init__(self, + *, + hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___QueryDenomTraceRequest = QueryDenomTraceRequest + +# QueryDenomTraceResponse is the response type for the Query/DenomTrace RPC +# method. +class QueryDenomTraceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_TRACE_FIELD_NUMBER: builtins.int + # denom_trace returns the requested denomination trace information. + @property + def denom_trace(self) -> ibc.applications.transfer.v1.transfer_pb2.DenomTrace: ... + def __init__(self, + *, + denom_trace : typing.Optional[ibc.applications.transfer.v1.transfer_pb2.DenomTrace] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denom_trace",b"denom_trace"]) -> None: ... +global___QueryDenomTraceResponse = QueryDenomTraceResponse + +# QueryConnectionsRequest is the request type for the Query/DenomTraces RPC +# method +class QueryDenomTracesRequest(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___QueryDenomTracesRequest = QueryDenomTracesRequest + +# QueryConnectionsResponse is the response type for the Query/DenomTraces RPC +# method. +class QueryDenomTracesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_TRACES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # denom_traces returns all denominations trace information. + @property + def denom_traces(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]: ... + # pagination defines the pagination in the response. + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + denom_traces : typing.Optional[typing.Iterable[ibc.applications.transfer.v1.transfer_pb2.DenomTrace]] = ..., + 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"denom_traces",b"denom_traces",u"pagination",b"pagination"]) -> None: ... +global___QueryDenomTracesResponse = QueryDenomTracesResponse + +# 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) -> ibc.applications.transfer.v1.transfer_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[ibc.applications.transfer.v1.transfer_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 diff --git a/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..30f097f --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/query_pb2_grpc.pyi @@ -0,0 +1,52 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service. +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # DenomTrace queries a denomination trace information. + DenomTrace:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomTraceRequest, + global___QueryDenomTraceResponse] = ... + + # DenomTraces queries all denomination traces. + DenomTraces:grpc.UnaryUnaryMultiCallable[ + global___QueryDenomTracesRequest, + global___QueryDenomTracesResponse] = ... + + # Params queries all parameters of the ibc-transfer module. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + +# Query provides defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # DenomTrace queries a denomination trace information. + @abc.abstractmethod + def DenomTrace(self, + request: global___QueryDenomTraceRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomTraceResponse: ... + + # DenomTraces queries all denomination traces. + @abc.abstractmethod + def DenomTraces(self, + request: global___QueryDenomTracesRequest, + context: grpc.ServicerContext, + ) -> global___QueryDenomTracesResponse: ... + + # Params queries all parameters of the ibc-transfer module. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi new file mode 100644 index 0000000..c097f72 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2.pyi @@ -0,0 +1,79 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# FungibleTokenPacketData defines a struct for the packet payload +# See FungibleTokenPacketData spec: +# https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +class FungibleTokenPacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DENOM_FIELD_NUMBER: builtins.int + AMOUNT_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + # the token denomination to be transferred + denom: typing.Text = ... + # the token amount to be transferred + amount: builtins.int = ... + # the sender address + sender: typing.Text = ... + # the recipient address on the destination chain + receiver: typing.Text = ... + def __init__(self, + *, + denom : typing.Text = ..., + amount : builtins.int = ..., + sender : typing.Text = ..., + receiver : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"amount",b"amount",u"denom",b"denom",u"receiver",b"receiver",u"sender",b"sender"]) -> None: ... +global___FungibleTokenPacketData = FungibleTokenPacketData + +# DenomTrace contains the base denomination for ICS20 fungible tokens and the +# source tracing information path. +class DenomTrace(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + BASE_DENOM_FIELD_NUMBER: builtins.int + # path defines the chain of port/channel identifiers used for tracing the + # source of the fungible token. + path: typing.Text = ... + # base denomination of the relayed fungible token. + base_denom: typing.Text = ... + def __init__(self, + *, + path : typing.Text = ..., + base_denom : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_denom",b"base_denom",u"path",b"path"]) -> None: ... +global___DenomTrace = DenomTrace + +# Params defines the set of IBC transfer parameters. +# NOTE: To prevent a single token from being transferred, set the +# TransfersEnabled parameter to true and then set the bank module's SendEnabled +# parameter for the denomination to false. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEND_ENABLED_FIELD_NUMBER: builtins.int + RECEIVE_ENABLED_FIELD_NUMBER: builtins.int + # send_enabled enables or disables all cross-chain token transfers from this + # chain. + send_enabled: builtins.bool = ... + # receive_enabled enables or disables all cross-chain token transfers to this + # chain. + receive_enabled: builtins.bool = ... + def __init__(self, + *, + send_enabled : builtins.bool = ..., + receive_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"receive_enabled",b"receive_enabled",u"send_enabled",b"send_enabled"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi new file mode 100644 index 0000000..6011570 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/transfer_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .transfer_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi new file mode 100644 index 0000000..3419d4a --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/tx_pb2.pyi @@ -0,0 +1,64 @@ +""" +@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 ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between +# ICS20 enabled chains. See ICS Spec here: +# https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures +class MsgTransfer(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SOURCE_PORT_FIELD_NUMBER: builtins.int + SOURCE_CHANNEL_FIELD_NUMBER: builtins.int + TOKEN_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + RECEIVER_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int + # the port on which the packet will be sent + source_port: typing.Text = ... + # the channel by which the packet will be sent + source_channel: typing.Text = ... + # the tokens to be transferred + @property + def token(self) -> cosmos.base.v1beta1.coin_pb2.Coin: ... + # the sender address + sender: typing.Text = ... + # the recipient address on the destination chain + receiver: typing.Text = ... + # Timeout height relative to the current block height. + # The timeout is disabled when set to 0. + @property + def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Timeout timestamp (in nanoseconds) relative to the current block timestamp. + # The timeout is disabled when set to 0. + timeout_timestamp: builtins.int = ... + def __init__(self, + *, + source_port : typing.Text = ..., + source_channel : typing.Text = ..., + token : typing.Optional[cosmos.base.v1beta1.coin_pb2.Coin] = ..., + sender : typing.Text = ..., + receiver : typing.Text = ..., + timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + timeout_timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height",u"token",b"token"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"receiver",b"receiver",u"sender",b"sender",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp",u"token",b"token"]) -> None: ... +global___MsgTransfer = MsgTransfer + +# MsgTransferResponse defines the Msg/Transfer response type. +class MsgTransferResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTransferResponse = MsgTransferResponse diff --git a/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..1f4b9b4 --- /dev/null +++ b/pyband/proto/ibc/applications/transfer/v1/tx_pb2_grpc.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/transfer Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Transfer defines a rpc handler method for MsgTransfer. + Transfer:grpc.UnaryUnaryMultiCallable[ + global___MsgTransfer, + global___MsgTransferResponse] = ... + + +# Msg defines the ibc/transfer Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # Transfer defines a rpc handler method for MsgTransfer. + @abc.abstractmethod + def Transfer(self, + request: global___MsgTransfer, + context: grpc.ServicerContext, + ) -> global___MsgTransferResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi new file mode 100644 index 0000000..df11784 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/channel_pb2.pyi @@ -0,0 +1,265 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# State defines if a channel is in one of the following states: +# CLOSED, INIT, TRYOPEN, OPEN or UNINITIALIZED. +class State(_State, metaclass=_StateEnumTypeWrapper): + pass +class _State: + V = typing.NewType('V', builtins.int) +class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) + # A channel has just started the opening handshake. + STATE_INIT = State.V(1) + # A channel has acknowledged the handshake step on the counterparty chain. + STATE_TRYOPEN = State.V(2) + # A channel has completed the handshake. Open channels are + # ready to send and receive packets. + STATE_OPEN = State.V(3) + # A channel has been closed and can no longer be used to send or receive + # packets. + STATE_CLOSED = State.V(4) + +# Default State +STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) +# A channel has just started the opening handshake. +STATE_INIT = State.V(1) +# A channel has acknowledged the handshake step on the counterparty chain. +STATE_TRYOPEN = State.V(2) +# A channel has completed the handshake. Open channels are +# ready to send and receive packets. +STATE_OPEN = State.V(3) +# A channel has been closed and can no longer be used to send or receive +# packets. +STATE_CLOSED = State.V(4) +global___State = State + + +# Order defines if a channel is ORDERED or UNORDERED +class Order(_Order, metaclass=_OrderEnumTypeWrapper): + pass +class _Order: + V = typing.NewType('V', builtins.int) +class _OrderEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Order.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # zero-value for channel ordering + ORDER_NONE_UNSPECIFIED = Order.V(0) + # packets can be delivered in any order, which may differ from the order in + # which they were sent. + ORDER_UNORDERED = Order.V(1) + # packets are delivered exactly in the order which they were sent + ORDER_ORDERED = Order.V(2) + +# zero-value for channel ordering +ORDER_NONE_UNSPECIFIED = Order.V(0) +# packets can be delivered in any order, which may differ from the order in +# which they were sent. +ORDER_UNORDERED = Order.V(1) +# packets are delivered exactly in the order which they were sent +ORDER_ORDERED = Order.V(2) +global___Order = Order + + +# Channel defines pipeline for exactly-once packet delivery between specific +# modules on separate blockchains, which has at least one end capable of +# sending packets and one end capable of receiving packets. +class Channel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATE_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + CONNECTION_HOPS_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + # current state of the channel end + state: global___State.V = ... + # whether the channel is ordered or unordered + ordering: global___Order.V = ... + # counterparty channel end + @property + def counterparty(self) -> global___Counterparty: ... + # list of connection identifiers, in order, along which packets sent on + # this channel will travel + @property + def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # opaque channel version, which is agreed upon during the handshake + version: typing.Text = ... + def __init__(self, + *, + state : global___State.V = ..., + ordering : global___Order.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., + version : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"state",b"state",u"version",b"version"]) -> None: ... +global___Channel = Channel + +# IdentifiedChannel defines a channel with additional port and channel +# identifier fields. +class IdentifiedChannel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATE_FIELD_NUMBER: builtins.int + ORDERING_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + CONNECTION_HOPS_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # current state of the channel end + state: global___State.V = ... + # whether the channel is ordered or unordered + ordering: global___Order.V = ... + # counterparty channel end + @property + def counterparty(self) -> global___Counterparty: ... + # list of connection identifiers, in order, along which packets sent on + # this channel will travel + @property + def connection_hops(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # opaque channel version, which is agreed upon during the handshake + version: typing.Text = ... + # port identifier + port_id: typing.Text = ... + # channel identifier + channel_id: typing.Text = ... + def __init__(self, + *, + state : global___State.V = ..., + ordering : global___Order.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + connection_hops : typing.Optional[typing.Iterable[typing.Text]] = ..., + version : typing.Text = ..., + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"connection_hops",b"connection_hops",u"counterparty",b"counterparty",u"ordering",b"ordering",u"port_id",b"port_id",u"state",b"state",u"version",b"version"]) -> None: ... +global___IdentifiedChannel = IdentifiedChannel + +# Counterparty defines a channel end counterparty +class Counterparty(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port on the counterparty chain which owns the other end of the channel. + port_id: typing.Text = ... + # channel end on the counterparty chain + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___Counterparty = Counterparty + +# Packet defines a type that carries data across different chains through IBC +class Packet(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + SOURCE_PORT_FIELD_NUMBER: builtins.int + SOURCE_CHANNEL_FIELD_NUMBER: builtins.int + DESTINATION_PORT_FIELD_NUMBER: builtins.int + DESTINATION_CHANNEL_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMEOUT_HEIGHT_FIELD_NUMBER: builtins.int + TIMEOUT_TIMESTAMP_FIELD_NUMBER: builtins.int + # number corresponds to the order of sends and receives, where a Packet + # with an earlier sequence number must be sent and received before a Packet + # with a later sequence number. + sequence: builtins.int = ... + # identifies the port on the sending chain. + source_port: typing.Text = ... + # identifies the channel end on the sending chain. + source_channel: typing.Text = ... + # identifies the port on the receiving chain. + destination_port: typing.Text = ... + # identifies the channel end on the receiving chain. + destination_channel: typing.Text = ... + # actual opaque bytes transferred directly to the application module + data: builtins.bytes = ... + # block height after which the packet times out + @property + def timeout_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # block timestamp (in nanoseconds) after which the packet times out + timeout_timestamp: builtins.int = ... + def __init__(self, + *, + sequence : builtins.int = ..., + source_port : typing.Text = ..., + source_channel : typing.Text = ..., + destination_port : typing.Text = ..., + destination_channel : typing.Text = ..., + data : builtins.bytes = ..., + timeout_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + timeout_timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timeout_height",b"timeout_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"destination_channel",b"destination_channel",u"destination_port",b"destination_port",u"sequence",b"sequence",u"source_channel",b"source_channel",u"source_port",b"source_port",u"timeout_height",b"timeout_height",u"timeout_timestamp",b"timeout_timestamp"]) -> None: ... +global___Packet = Packet + +# PacketState defines the generic type necessary to retrieve and store +# packet commitments, acknowledgements, and receipts. +# Caller is responsible for knowing the context necessary to interpret this +# state as a commitment, acknowledgement, or a receipt. +class PacketState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + # channel port identifier. + port_id: typing.Text = ... + # channel unique identifier. + channel_id: typing.Text = ... + # packet sequence. + sequence: builtins.int = ... + # embedded data that represents packet state. + data: builtins.bytes = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"data",b"data",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___PacketState = PacketState + +# Acknowledgement is the recommended acknowledgement format to be used by +# app-specific protocols. +# NOTE: The field numbers 21 and 22 were explicitly chosen to avoid accidental +# conflicts with other protobuf message formats used for acknowledgements. +# The first byte of any message with this format will be the non-ASCII values +# `0xaa` (result) or `0xb2` (error). Implemented as defined by ICS: +# https://github.com/cosmos/ics/tree/master/spec/ics-004-channel-and-packet-semantics#acknowledgement-envelope +class Acknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RESULT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + result: builtins.bytes = ... + error: typing.Text = ... + def __init__(self, + *, + result : builtins.bytes = ..., + error : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error",u"response",b"response",u"result",b"result"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"response",b"response"]) -> typing.Optional[typing_extensions.Literal["result","error"]]: ... +global___Acknowledgement = Acknowledgement diff --git a/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi new file mode 100644 index 0000000..8e5d952 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/channel_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .channel_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi new file mode 100644 index 0000000..24a8d9b --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/genesis_pb2.pyi @@ -0,0 +1,73 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc channel submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int + COMMITMENTS_FIELD_NUMBER: builtins.int + RECEIPTS_FIELD_NUMBER: builtins.int + SEND_SEQUENCES_FIELD_NUMBER: builtins.int + RECV_SEQUENCES_FIELD_NUMBER: builtins.int + ACK_SEQUENCES_FIELD_NUMBER: builtins.int + NEXT_CHANNEL_SEQUENCE_FIELD_NUMBER: builtins.int + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + @property + def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def receipts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + @property + def send_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + @property + def recv_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + @property + def ack_sequences(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PacketSequence]: ... + # the sequence for the next generated channel identifier + next_channel_sequence: builtins.int = ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + receipts : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + send_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + recv_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + ack_sequences : typing.Optional[typing.Iterable[global___PacketSequence]] = ..., + next_channel_sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ack_sequences",b"ack_sequences",u"acknowledgements",b"acknowledgements",u"channels",b"channels",u"commitments",b"commitments",u"next_channel_sequence",b"next_channel_sequence",u"receipts",b"receipts",u"recv_sequences",b"recv_sequences",u"send_sequences",b"send_sequences"]) -> None: ... +global___GenesisState = GenesisState + +# PacketSequence defines the genesis type necessary to retrieve and store +# next send and receive sequences. +class PacketSequence(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___PacketSequence = PacketSequence diff --git a/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2.pyi new file mode 100644 index 0000000..676f179 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/query_pb2.pyi @@ -0,0 +1,612 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 ibc.core.channel.v1.channel_pb2 +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryChannelRequest is the request type for the Query/Channel RPC method +class QueryChannelRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryChannelRequest = QueryChannelRequest + +# QueryChannelResponse is the response type for the Query/Channel RPC method. +# Besides the Channel end, it includes a proof and the height from which the +# proof was retrieved. +class QueryChannelResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNEL_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # channel associated with the request identifiers + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelResponse = QueryChannelResponse + +# QueryChannelsRequest is the request type for the Query/Channels RPC method +class QueryChannelsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination 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___QueryChannelsRequest = QueryChannelsRequest + +# QueryChannelsResponse is the response type for the Query/Channels RPC method. +class QueryChannelsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of stored channels of the chain. + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryChannelsResponse = QueryChannelsResponse + +# QueryConnectionChannelsRequest is the request type for the +# Query/QueryConnectionChannels RPC method +class QueryConnectionChannelsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # connection unique identifier + connection: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + connection : typing.Text = ..., + 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"connection",b"connection",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionChannelsRequest = QueryConnectionChannelsRequest + +# QueryConnectionChannelsResponse is the Response type for the +# Query/QueryConnectionChannels RPC method +class QueryConnectionChannelsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHANNELS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of channels associated with a connection. + @property + def channels(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + channels : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.IdentifiedChannel]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionChannelsResponse = QueryConnectionChannelsResponse + +# QueryChannelClientStateRequest is the request type for the Query/ClientState +# RPC method +class QueryChannelClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryChannelClientStateRequest = QueryChannelClientStateRequest + +# QueryChannelClientStateResponse is the Response type for the +# Query/QueryChannelClientState RPC method +class QueryChannelClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the channel + @property + def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelClientStateResponse = QueryChannelClientStateResponse + +# QueryChannelConsensusStateRequest is the request type for the +# Query/ConsensusState RPC method +class QueryChannelConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # revision number of the consensus state + revision_number: builtins.int = ... + # revision height of the consensus state + revision_height: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryChannelConsensusStateRequest = QueryChannelConsensusStateRequest + +# QueryChannelClientStateResponse is the Response type for the +# Query/QueryChannelClientState RPC method +class QueryChannelConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the channel + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # client ID associated with the consensus state + client_id: typing.Text = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + client_id : typing.Text = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryChannelConsensusStateResponse = QueryChannelConsensusStateResponse + +# QueryPacketCommitmentRequest is the request type for the +# Query/PacketCommitment RPC method +class QueryPacketCommitmentRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketCommitmentRequest = QueryPacketCommitmentRequest + +# QueryPacketCommitmentResponse defines the client query response for a packet +# which also includes a proof and the height from which the proof was +# retrieved +class QueryPacketCommitmentResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMITMENT_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # packet associated with the request fields + commitment: builtins.bytes = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + commitment : builtins.bytes = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryPacketCommitmentResponse = QueryPacketCommitmentResponse + +# QueryPacketCommitmentsRequest is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketCommitmentsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + 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"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... +global___QueryPacketCommitmentsRequest = QueryPacketCommitmentsRequest + +# QueryPacketCommitmentsResponse is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketCommitmentsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + COMMITMENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + @property + def commitments(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + commitments : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitments",b"commitments",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryPacketCommitmentsResponse = QueryPacketCommitmentsResponse + +# QueryPacketReceiptRequest is the request type for the +# Query/PacketReceipt RPC method +class QueryPacketReceiptRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketReceiptRequest = QueryPacketReceiptRequest + +# QueryPacketReceiptResponse defines the client query response for a packet +# receipt which also includes a proof, and the height from which the proof was +# retrieved +class QueryPacketReceiptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + RECEIVED_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # success flag for if receipt exists + received: builtins.bool = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + received : builtins.bool = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proof",b"proof",u"proof_height",b"proof_height",u"received",b"received"]) -> None: ... +global___QueryPacketReceiptResponse = QueryPacketReceiptResponse + +# QueryPacketAcknowledgementRequest is the request type for the +# Query/PacketAcknowledgement RPC method +class QueryPacketAcknowledgementRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # packet sequence + sequence: builtins.int = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + sequence : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"sequence",b"sequence"]) -> None: ... +global___QueryPacketAcknowledgementRequest = QueryPacketAcknowledgementRequest + +# QueryPacketAcknowledgementResponse defines the client query response for a +# packet which also includes a proof and the height from which the +# proof was retrieved +class QueryPacketAcknowledgementResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # packet associated with the request fields + acknowledgement: builtins.bytes = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + acknowledgement : builtins.bytes = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryPacketAcknowledgementResponse = QueryPacketAcknowledgementResponse + +# QueryPacketAcknowledgementsRequest is the request type for the +# Query/QueryPacketCommitments RPC method +class QueryPacketAcknowledgementsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + 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"channel_id",b"channel_id",u"pagination",b"pagination",u"port_id",b"port_id"]) -> None: ... +global___QueryPacketAcknowledgementsRequest = QueryPacketAcknowledgementsRequest + +# QueryPacketAcknowledgemetsResponse is the request type for the +# Query/QueryPacketAcknowledgements RPC method +class QueryPacketAcknowledgementsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ACKNOWLEDGEMENTS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + @property + def acknowledgements(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.channel.v1.channel_pb2.PacketState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + acknowledgements : typing.Optional[typing.Iterable[ibc.core.channel.v1.channel_pb2.PacketState]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgements",b"acknowledgements",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryPacketAcknowledgementsResponse = QueryPacketAcknowledgementsResponse + +# QueryUnreceivedPacketsRequest is the request type for the +# Query/UnreceivedPackets RPC method +class QueryUnreceivedPacketsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PACKET_COMMITMENT_SEQUENCES_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # list of packet sequences + @property + def packet_commitment_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + packet_commitment_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_commitment_sequences",b"packet_commitment_sequences",u"port_id",b"port_id"]) -> None: ... +global___QueryUnreceivedPacketsRequest = QueryUnreceivedPacketsRequest + +# QueryUnreceivedPacketsResponse is the response type for the +# Query/UnreceivedPacketCommitments RPC method +class QueryUnreceivedPacketsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCES_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of unreceived packet sequences + @property + def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... +global___QueryUnreceivedPacketsResponse = QueryUnreceivedPacketsResponse + +# QueryUnreceivedAcks is the request type for the +# Query/UnreceivedAcks RPC method +class QueryUnreceivedAcksRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PACKET_ACK_SEQUENCES_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + # list of acknowledgement sequences + @property + def packet_ack_sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + packet_ack_sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"packet_ack_sequences",b"packet_ack_sequences",u"port_id",b"port_id"]) -> None: ... +global___QueryUnreceivedAcksRequest = QueryUnreceivedAcksRequest + +# QueryUnreceivedAcksResponse is the response type for the +# Query/UnreceivedAcks RPC method +class QueryUnreceivedAcksResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCES_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of unreceived acknowledgement sequences + @property + def sequences(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + sequences : typing.Optional[typing.Iterable[builtins.int]] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"sequences",b"sequences"]) -> None: ... +global___QueryUnreceivedAcksResponse = QueryUnreceivedAcksResponse + +# QueryNextSequenceReceiveRequest is the request type for the +# Query/QueryNextSequenceReceiveRequest RPC method +class QueryNextSequenceReceiveRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # port unique identifier + port_id: typing.Text = ... + # channel unique identifier + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___QueryNextSequenceReceiveRequest = QueryNextSequenceReceiveRequest + +# QuerySequenceResponse is the request type for the +# Query/QueryNextSequenceReceiveResponse RPC method +class QueryNextSequenceReceiveResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEXT_SEQUENCE_RECEIVE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # next sequence receive number + next_sequence_receive: builtins.int = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + next_sequence_receive : builtins.int = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_receive",b"next_sequence_receive",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryNextSequenceReceiveResponse = QueryNextSequenceReceiveResponse diff --git a/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..fbc8fb2 --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/query_pb2_grpc.pyi @@ -0,0 +1,188 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Channel queries an IBC Channel. + Channel:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelRequest, + global___QueryChannelResponse] = ... + + # Channels queries all the IBC channels of a chain. + Channels:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelsRequest, + global___QueryChannelsResponse] = ... + + # ConnectionChannels queries all the channels associated with a connection + # end. + ConnectionChannels:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionChannelsRequest, + global___QueryConnectionChannelsResponse] = ... + + # ChannelClientState queries for the client state for the channel associated + # with the provided channel identifiers. + ChannelClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelClientStateRequest, + global___QueryChannelClientStateResponse] = ... + + # ChannelConsensusState queries for the consensus state for the channel + # associated with the provided channel identifiers. + ChannelConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryChannelConsensusStateRequest, + global___QueryChannelConsensusStateResponse] = ... + + # PacketCommitment queries a stored packet commitment hash. + PacketCommitment:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketCommitmentRequest, + global___QueryPacketCommitmentResponse] = ... + + # PacketCommitments returns all the packet commitments hashes associated + # with a channel. + PacketCommitments:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketCommitmentsRequest, + global___QueryPacketCommitmentsResponse] = ... + + # PacketReceipt queries if a given packet sequence has been received on the + # queried chain + PacketReceipt:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketReceiptRequest, + global___QueryPacketReceiptResponse] = ... + + # PacketAcknowledgement queries a stored packet acknowledgement hash. + PacketAcknowledgement:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketAcknowledgementRequest, + global___QueryPacketAcknowledgementResponse] = ... + + # PacketAcknowledgements returns all the packet acknowledgements associated + # with a channel. + PacketAcknowledgements:grpc.UnaryUnaryMultiCallable[ + global___QueryPacketAcknowledgementsRequest, + global___QueryPacketAcknowledgementsResponse] = ... + + # UnreceivedPackets returns all the unreceived IBC packets associated with a + # channel and sequences. + UnreceivedPackets:grpc.UnaryUnaryMultiCallable[ + global___QueryUnreceivedPacketsRequest, + global___QueryUnreceivedPacketsResponse] = ... + + # UnreceivedAcks returns all the unreceived IBC acknowledgements associated + # with a channel and sequences. + UnreceivedAcks:grpc.UnaryUnaryMultiCallable[ + global___QueryUnreceivedAcksRequest, + global___QueryUnreceivedAcksResponse] = ... + + # NextSequenceReceive returns the next receive sequence for a given channel. + NextSequenceReceive:grpc.UnaryUnaryMultiCallable[ + global___QueryNextSequenceReceiveRequest, + global___QueryNextSequenceReceiveResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Channel queries an IBC Channel. + @abc.abstractmethod + def Channel(self, + request: global___QueryChannelRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelResponse: ... + + # Channels queries all the IBC channels of a chain. + @abc.abstractmethod + def Channels(self, + request: global___QueryChannelsRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelsResponse: ... + + # ConnectionChannels queries all the channels associated with a connection + # end. + @abc.abstractmethod + def ConnectionChannels(self, + request: global___QueryConnectionChannelsRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionChannelsResponse: ... + + # ChannelClientState queries for the client state for the channel associated + # with the provided channel identifiers. + @abc.abstractmethod + def ChannelClientState(self, + request: global___QueryChannelClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelClientStateResponse: ... + + # ChannelConsensusState queries for the consensus state for the channel + # associated with the provided channel identifiers. + @abc.abstractmethod + def ChannelConsensusState(self, + request: global___QueryChannelConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryChannelConsensusStateResponse: ... + + # PacketCommitment queries a stored packet commitment hash. + @abc.abstractmethod + def PacketCommitment(self, + request: global___QueryPacketCommitmentRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketCommitmentResponse: ... + + # PacketCommitments returns all the packet commitments hashes associated + # with a channel. + @abc.abstractmethod + def PacketCommitments(self, + request: global___QueryPacketCommitmentsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketCommitmentsResponse: ... + + # PacketReceipt queries if a given packet sequence has been received on the + # queried chain + @abc.abstractmethod + def PacketReceipt(self, + request: global___QueryPacketReceiptRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketReceiptResponse: ... + + # PacketAcknowledgement queries a stored packet acknowledgement hash. + @abc.abstractmethod + def PacketAcknowledgement(self, + request: global___QueryPacketAcknowledgementRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketAcknowledgementResponse: ... + + # PacketAcknowledgements returns all the packet acknowledgements associated + # with a channel. + @abc.abstractmethod + def PacketAcknowledgements(self, + request: global___QueryPacketAcknowledgementsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPacketAcknowledgementsResponse: ... + + # UnreceivedPackets returns all the unreceived IBC packets associated with a + # channel and sequences. + @abc.abstractmethod + def UnreceivedPackets(self, + request: global___QueryUnreceivedPacketsRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnreceivedPacketsResponse: ... + + # UnreceivedAcks returns all the unreceived IBC acknowledgements associated + # with a channel and sequences. + @abc.abstractmethod + def UnreceivedAcks(self, + request: global___QueryUnreceivedAcksRequest, + context: grpc.ServicerContext, + ) -> global___QueryUnreceivedAcksResponse: ... + + # NextSequenceReceive returns the next receive sequence for a given channel. + @abc.abstractmethod + def NextSequenceReceive(self, + request: global___QueryNextSequenceReceiveRequest, + context: grpc.ServicerContext, + ) -> global___QueryNextSequenceReceiveResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi new file mode 100644 index 0000000..7ba0d6e --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2.pyi @@ -0,0 +1,356 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgChannelOpenInit defines an sdk.Msg to initialize a channel handshake. It +# is called by a relayer on Chain A. +class MsgChannelOpenInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenInit = MsgChannelOpenInit + +# MsgChannelOpenInitResponse defines the Msg/ChannelOpenInit response type. +class MsgChannelOpenInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenInitResponse = MsgChannelOpenInitResponse + +# MsgChannelOpenInit defines a msg sent by a Relayer to try to open a channel +# on Chain B. +class MsgChannelOpenTry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + PREVIOUS_CHANNEL_ID_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + # in the case of crossing hello's, when both chains call OpenInit, we need + # the channel identifier of the previous channel in state INIT + previous_channel_id: typing.Text = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + counterparty_version: typing.Text = ... + proof_init: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + previous_channel_id : typing.Text = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + counterparty_version : typing.Text = ..., + proof_init : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"previous_channel_id",b"previous_channel_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenTry = MsgChannelOpenTry + +# MsgChannelOpenTryResponse defines the Msg/ChannelOpenTry response type. +class MsgChannelOpenTryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenTryResponse = MsgChannelOpenTryResponse + +# MsgChannelOpenAck defines a msg sent by a Relayer to Chain A to acknowledge +# the change of channel state to TRYOPEN on Chain B. +class MsgChannelOpenAck(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_CHANNEL_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSION_FIELD_NUMBER: builtins.int + PROOF_TRY_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + counterparty_channel_id: typing.Text = ... + counterparty_version: typing.Text = ... + proof_try: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + counterparty_channel_id : typing.Text = ..., + counterparty_version : typing.Text = ..., + proof_try : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"counterparty_channel_id",b"counterparty_channel_id",u"counterparty_version",b"counterparty_version",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenAck = MsgChannelOpenAck + +# MsgChannelOpenAckResponse defines the Msg/ChannelOpenAck response type. +class MsgChannelOpenAckResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenAckResponse = MsgChannelOpenAckResponse + +# MsgChannelOpenConfirm defines a msg sent by a Relayer to Chain B to +# acknowledge the change of channel state to OPEN on Chain A. +class MsgChannelOpenConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PROOF_ACK_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + proof_ack: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + proof_ack : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgChannelOpenConfirm = MsgChannelOpenConfirm + +# MsgChannelOpenConfirmResponse defines the Msg/ChannelOpenConfirm response +# type. +class MsgChannelOpenConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelOpenConfirmResponse = MsgChannelOpenConfirmResponse + +# MsgChannelCloseInit defines a msg sent by a Relayer to Chain A +# to close a channel with Chain B. +class MsgChannelCloseInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + signer : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"signer",b"signer"]) -> None: ... +global___MsgChannelCloseInit = MsgChannelCloseInit + +# MsgChannelCloseInitResponse defines the Msg/ChannelCloseInit response type. +class MsgChannelCloseInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelCloseInitResponse = MsgChannelCloseInitResponse + +# MsgChannelCloseConfirm defines a msg sent by a Relayer to Chain B +# to acknowledge the change of channel state to CLOSED on Chain A. +class MsgChannelCloseConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + port_id: typing.Text = ... + channel_id: typing.Text = ... + proof_init: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + proof_init : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgChannelCloseConfirm = MsgChannelCloseConfirm + +# MsgChannelCloseConfirmResponse defines the Msg/ChannelCloseConfirm response +# type. +class MsgChannelCloseConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgChannelCloseConfirmResponse = MsgChannelCloseConfirmResponse + +# MsgRecvPacket receives incoming IBC packet +class MsgRecvPacket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_COMMITMENT_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_commitment: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_commitment : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_commitment",b"proof_commitment",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgRecvPacket = MsgRecvPacket + +# MsgRecvPacketResponse defines the Msg/RecvPacket response type. +class MsgRecvPacketResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRecvPacketResponse = MsgRecvPacketResponse + +# MsgTimeout receives timed-out packet +class MsgTimeout(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_unreceived: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + next_sequence_recv: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_unreceived : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + next_sequence_recv : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... +global___MsgTimeout = MsgTimeout + +# MsgTimeoutResponse defines the Msg/Timeout response type. +class MsgTimeoutResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTimeoutResponse = MsgTimeoutResponse + +# MsgTimeoutOnClose timed-out packet upon counterparty channel closure. +class MsgTimeoutOnClose(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + PROOF_UNRECEIVED_FIELD_NUMBER: builtins.int + PROOF_CLOSE_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + NEXT_SEQUENCE_RECV_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + proof_unreceived: builtins.bytes = ... + proof_close: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + next_sequence_recv: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + proof_unreceived : builtins.bytes = ..., + proof_close : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + next_sequence_recv : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_sequence_recv",b"next_sequence_recv",u"packet",b"packet",u"proof_close",b"proof_close",u"proof_height",b"proof_height",u"proof_unreceived",b"proof_unreceived",u"signer",b"signer"]) -> None: ... +global___MsgTimeoutOnClose = MsgTimeoutOnClose + +# MsgTimeoutOnCloseResponse defines the Msg/TimeoutOnClose response type. +class MsgTimeoutOnCloseResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgTimeoutOnCloseResponse = MsgTimeoutOnCloseResponse + +# MsgAcknowledgement receives incoming IBC acknowledgement +class MsgAcknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PACKET_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + PROOF_ACKED_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + @property + def packet(self) -> ibc.core.channel.v1.channel_pb2.Packet: ... + acknowledgement: builtins.bytes = ... + proof_acked: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + packet : typing.Optional[ibc.core.channel.v1.channel_pb2.Packet] = ..., + acknowledgement : builtins.bytes = ..., + proof_acked : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"packet",b"packet",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"packet",b"packet",u"proof_acked",b"proof_acked",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgAcknowledgement = MsgAcknowledgement + +# MsgAcknowledgementResponse defines the Msg/Acknowledgement response type. +class MsgAcknowledgementResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgAcknowledgementResponse = MsgAcknowledgementResponse diff --git a/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..bfd6a2b --- /dev/null +++ b/pyband/proto/ibc/core/channel/v1/tx_pb2_grpc.pyi @@ -0,0 +1,138 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/channel Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + ChannelOpenInit:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenInit, + global___MsgChannelOpenInitResponse] = ... + + # ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + ChannelOpenTry:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenTry, + global___MsgChannelOpenTryResponse] = ... + + # ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + ChannelOpenAck:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenAck, + global___MsgChannelOpenAckResponse] = ... + + # ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. + ChannelOpenConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelOpenConfirm, + global___MsgChannelOpenConfirmResponse] = ... + + # ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + ChannelCloseInit:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelCloseInit, + global___MsgChannelCloseInitResponse] = ... + + # ChannelCloseConfirm defines a rpc handler method for + # MsgChannelCloseConfirm. + ChannelCloseConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgChannelCloseConfirm, + global___MsgChannelCloseConfirmResponse] = ... + + # RecvPacket defines a rpc handler method for MsgRecvPacket. + RecvPacket:grpc.UnaryUnaryMultiCallable[ + global___MsgRecvPacket, + global___MsgRecvPacketResponse] = ... + + # Timeout defines a rpc handler method for MsgTimeout. + Timeout:grpc.UnaryUnaryMultiCallable[ + global___MsgTimeout, + global___MsgTimeoutResponse] = ... + + # TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + TimeoutOnClose:grpc.UnaryUnaryMultiCallable[ + global___MsgTimeoutOnClose, + global___MsgTimeoutOnCloseResponse] = ... + + # Acknowledgement defines a rpc handler method for MsgAcknowledgement. + Acknowledgement:grpc.UnaryUnaryMultiCallable[ + global___MsgAcknowledgement, + global___MsgAcknowledgementResponse] = ... + + +# Msg defines the ibc/channel Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # ChannelOpenInit defines a rpc handler method for MsgChannelOpenInit. + @abc.abstractmethod + def ChannelOpenInit(self, + request: global___MsgChannelOpenInit, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenInitResponse: ... + + # ChannelOpenTry defines a rpc handler method for MsgChannelOpenTry. + @abc.abstractmethod + def ChannelOpenTry(self, + request: global___MsgChannelOpenTry, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenTryResponse: ... + + # ChannelOpenAck defines a rpc handler method for MsgChannelOpenAck. + @abc.abstractmethod + def ChannelOpenAck(self, + request: global___MsgChannelOpenAck, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenAckResponse: ... + + # ChannelOpenConfirm defines a rpc handler method for MsgChannelOpenConfirm. + @abc.abstractmethod + def ChannelOpenConfirm(self, + request: global___MsgChannelOpenConfirm, + context: grpc.ServicerContext, + ) -> global___MsgChannelOpenConfirmResponse: ... + + # ChannelCloseInit defines a rpc handler method for MsgChannelCloseInit. + @abc.abstractmethod + def ChannelCloseInit(self, + request: global___MsgChannelCloseInit, + context: grpc.ServicerContext, + ) -> global___MsgChannelCloseInitResponse: ... + + # ChannelCloseConfirm defines a rpc handler method for + # MsgChannelCloseConfirm. + @abc.abstractmethod + def ChannelCloseConfirm(self, + request: global___MsgChannelCloseConfirm, + context: grpc.ServicerContext, + ) -> global___MsgChannelCloseConfirmResponse: ... + + # RecvPacket defines a rpc handler method for MsgRecvPacket. + @abc.abstractmethod + def RecvPacket(self, + request: global___MsgRecvPacket, + context: grpc.ServicerContext, + ) -> global___MsgRecvPacketResponse: ... + + # Timeout defines a rpc handler method for MsgTimeout. + @abc.abstractmethod + def Timeout(self, + request: global___MsgTimeout, + context: grpc.ServicerContext, + ) -> global___MsgTimeoutResponse: ... + + # TimeoutOnClose defines a rpc handler method for MsgTimeoutOnClose. + @abc.abstractmethod + def TimeoutOnClose(self, + request: global___MsgTimeoutOnClose, + context: grpc.ServicerContext, + ) -> global___MsgTimeoutOnCloseResponse: ... + + # Acknowledgement defines a rpc handler method for MsgAcknowledgement. + @abc.abstractmethod + def Acknowledgement(self, + request: global___MsgAcknowledgement, + context: grpc.ServicerContext, + ) -> global___MsgAcknowledgementResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/client_pb2.pyi b/pyband/proto/ibc/core/client/v1/client_pb2.pyi new file mode 100644 index 0000000..fab603e --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/client_pb2.pyi @@ -0,0 +1,174 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import cosmos.upgrade.v1beta1.upgrade_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 = ... + +# IdentifiedClientState defines a client state with an additional client +# identifier field. +class IdentifiedClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state"]) -> None: ... +global___IdentifiedClientState = IdentifiedClientState + +# ConsensusStateWithHeight defines a consensus state with an additional height +# field. +class ConsensusStateWithHeight(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HEIGHT_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + # consensus state height + @property + def height(self) -> global___Height: ... + # consensus state + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + height : typing.Optional[global___Height] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"height",b"height"]) -> None: ... +global___ConsensusStateWithHeight = ConsensusStateWithHeight + +# ClientConsensusStates defines all the stored consensus states for a given +# client. +class ClientConsensusStates(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CONSENSUS_STATES_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # consensus states and their heights associated with the client + @property + def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConsensusStateWithHeight]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + consensus_states : typing.Optional[typing.Iterable[global___ConsensusStateWithHeight]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_states",b"consensus_states"]) -> None: ... +global___ClientConsensusStates = ClientConsensusStates + +# ClientUpdateProposal is a governance proposal. If it passes, the substitute +# client's latest consensus state is copied over to the subject client. The proposal +# handler may fail if the subject and the substitute do not match in client and +# chain parameters (with exception to latest height, frozen height, and chain-id). +class ClientUpdateProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SUBJECT_CLIENT_ID_FIELD_NUMBER: builtins.int + SUBSTITUTE_CLIENT_ID_FIELD_NUMBER: builtins.int + # the title of the update proposal + title: typing.Text = ... + # the description of the proposal + description: typing.Text = ... + # the client identifier for the client to be updated if the proposal passes + subject_client_id: typing.Text = ... + # the substitute client identifier for the client standing in for the subject + # client + substitute_client_id: typing.Text = ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + subject_client_id : typing.Text = ..., + substitute_client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"subject_client_id",b"subject_client_id",u"substitute_client_id",b"substitute_client_id",u"title",b"title"]) -> None: ... +global___ClientUpdateProposal = ClientUpdateProposal + +# UpgradeProposal is a gov Content type for initiating an IBC breaking +# upgrade. +class UpgradeProposal(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TITLE_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + PLAN_FIELD_NUMBER: builtins.int + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + title: typing.Text = ... + description: typing.Text = ... + @property + def plan(self) -> cosmos.upgrade.v1beta1.upgrade_pb2.Plan: ... + # An UpgradedClientState must be provided to perform an IBC breaking upgrade. + # This will make the chain commit to the correct upgraded (self) client state + # before the upgrade occurs, so that connecting chains can verify that the + # new upgraded client is valid by verifying a proof on the previous version + # of the chain. This will allow IBC connections to persist smoothly across + # planned chain upgrades + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + title : typing.Text = ..., + description : typing.Text = ..., + plan : typing.Optional[cosmos.upgrade.v1beta1.upgrade_pb2.Plan] = ..., + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"plan",b"plan",u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"plan",b"plan",u"title",b"title",u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___UpgradeProposal = UpgradeProposal + +# Height is a monotonically increasing data type +# that can be compared against another Height for the purposes of updating and +# freezing clients +# +# Normally the RevisionHeight is incremented at each height while keeping +# RevisionNumber the same. However some consensus algorithms may choose to +# reset the height in certain conditions e.g. hard forks, state-machine +# breaking changes In these cases, the RevisionNumber is incremented so that +# height continues to be monitonically increasing even as the RevisionHeight +# gets reset +class Height(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # the revision that the client is currently on + revision_number: builtins.int = ... + # the height within the given revision + revision_height: builtins.int = ... + def __init__(self, + *, + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___Height = Height + +# Params defines the set of IBC light client parameters. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ALLOWED_CLIENTS_FIELD_NUMBER: builtins.int + # allowed_clients defines the list of allowed client state types. + @property + def allowed_clients(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + allowed_clients : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allowed_clients",b"allowed_clients"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi new file mode 100644 index 0000000..604fd68 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/client_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .client_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2.pyi new file mode 100644 index 0000000..3d4bad7 --- /dev/null +++ b/pyband/proto/ibc/core/client/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.internal.containers +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc client submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENTS_FIELD_NUMBER: builtins.int + CLIENTS_CONSENSUS_FIELD_NUMBER: builtins.int + CLIENTS_METADATA_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + CREATE_LOCALHOST_FIELD_NUMBER: builtins.int + NEXT_CLIENT_SEQUENCE_FIELD_NUMBER: builtins.int + # client states with their corresponding identifiers + @property + def clients(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... + # consensus states from each client + @property + def clients_consensus(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ClientConsensusStates]: ... + # metadata from each client + @property + def clients_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IdentifiedGenesisMetadata]: ... + @property + def params(self) -> ibc.core.client.v1.client_pb2.Params: ... + # create localhost on initialization + create_localhost: builtins.bool = ... + # the sequence for the next generated client identifier + next_client_sequence: builtins.int = ... + def __init__(self, + *, + clients : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., + clients_consensus : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ClientConsensusStates]] = ..., + clients_metadata : typing.Optional[typing.Iterable[global___IdentifiedGenesisMetadata]] = ..., + params : typing.Optional[ibc.core.client.v1.client_pb2.Params] = ..., + create_localhost : builtins.bool = ..., + next_client_sequence : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"clients",b"clients",u"clients_consensus",b"clients_consensus",u"clients_metadata",b"clients_metadata",u"create_localhost",b"create_localhost",u"next_client_sequence",b"next_client_sequence",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState + +# GenesisMetadata defines the genesis type for metadata that clients may return +# with ExportMetadata +class GenesisMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + # store key of metadata without clientID-prefix + key: builtins.bytes = ... + # metadata value + value: builtins.bytes = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___GenesisMetadata = GenesisMetadata + +# IdentifiedGenesisMetadata has the client metadata with the corresponding +# client id. +class IdentifiedGenesisMetadata(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_METADATA_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def client_metadata(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GenesisMetadata]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_metadata : typing.Optional[typing.Iterable[global___GenesisMetadata]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_metadata",b"client_metadata"]) -> None: ... +global___IdentifiedGenesisMetadata = IdentifiedGenesisMetadata diff --git a/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/client/v1/query_pb2.pyi b/pyband/proto/ibc/core/client/v1/query_pb2.pyi new file mode 100644 index 0000000..02b288d --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/query_pb2.pyi @@ -0,0 +1,285 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryClientStateRequest is the request type for the Query/ClientState RPC +# method +class QueryClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client state unique identifier + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientStateRequest = QueryClientStateRequest + +# QueryClientStateResponse is the response type for the Query/ClientState RPC +# method. Besides the client state, it includes a proof and the height from +# which the proof was retrieved. +class QueryClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the request identifier + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryClientStateResponse = QueryClientStateResponse + +# QueryClientStatesRequest is the request type for the Query/ClientStates RPC +# method +class QueryClientStatesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PAGINATION_FIELD_NUMBER: builtins.int + # pagination 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___QueryClientStatesRequest = QueryClientStatesRequest + +# QueryClientStatesResponse is the response type for the Query/ClientStates RPC +# method. +class QueryClientStatesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # list of stored ClientStates of the chain. + @property + def client_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.IdentifiedClientState]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + client_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.IdentifiedClientState]] = ..., + 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"client_states",b"client_states",u"pagination",b"pagination"]) -> None: ... +global___QueryClientStatesResponse = QueryClientStatesResponse + +# QueryConsensusStateRequest is the request type for the Query/ConsensusState +# RPC method. Besides the consensus state, it includes a proof and the height +# from which the proof was retrieved. +class QueryConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + LATEST_HEIGHT_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # consensus state revision number + revision_number: builtins.int = ... + # consensus state revision height + revision_height: builtins.int = ... + # latest_height overrrides the height field and queries the latest stored + # ConsensusState + latest_height: builtins.bool = ... + def __init__(self, + *, + client_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + latest_height : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"latest_height",b"latest_height",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryConsensusStateRequest = QueryConsensusStateRequest + +# QueryConsensusStateResponse is the response type for the Query/ConsensusState +# RPC method +class QueryConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the client identifier at the given height + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConsensusStateResponse = QueryConsensusStateResponse + +# QueryConsensusStatesRequest is the request type for the Query/ConsensusStates +# RPC method. +class QueryConsensusStatesRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # client identifier + client_id: typing.Text = ... + # pagination request + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageRequest: ... + def __init__(self, + *, + client_id : typing.Text = ..., + 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"client_id",b"client_id",u"pagination",b"pagination"]) -> None: ... +global___QueryConsensusStatesRequest = QueryConsensusStatesRequest + +# QueryConsensusStatesResponse is the response type for the +# Query/ConsensusStates RPC method +class QueryConsensusStatesResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATES_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + # consensus states associated with the identifier + @property + def consensus_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + def __init__(self, + *, + consensus_states : typing.Optional[typing.Iterable[ibc.core.client.v1.client_pb2.ConsensusStateWithHeight]] = ..., + 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"consensus_states",b"consensus_states",u"pagination",b"pagination"]) -> None: ... +global___QueryConsensusStatesResponse = QueryConsensusStatesResponse + +# QueryClientStatusRequest is the request type for the Query/ClientStatus RPC +# method +class QueryClientStatusRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientStatusRequest = QueryClientStatusRequest + +# QueryClientStatusResponse is the response type for the Query/ClientStatus RPC +# method. It returns the current status of the IBC client. +class QueryClientStatusResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + status: typing.Text = ... + def __init__(self, + *, + status : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> None: ... +global___QueryClientStatusResponse = QueryClientStatusResponse + +# QueryClientParamsRequest is the request type for the Query/ClientParams RPC +# method. +class QueryClientParamsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryClientParamsRequest = QueryClientParamsRequest + +# QueryClientParamsResponse is the response type for the Query/ClientParams RPC +# method. +class QueryClientParamsResponse(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) -> ibc.core.client.v1.client_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[ibc.core.client.v1.client_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___QueryClientParamsResponse = QueryClientParamsResponse + +# QueryUpgradedClientStateRequest is the request type for the +# Query/UpgradedClientState RPC method +class QueryUpgradedClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryUpgradedClientStateRequest = QueryUpgradedClientStateRequest + +# QueryUpgradedClientStateResponse is the response type for the +# Query/UpgradedClientState RPC method. +class QueryUpgradedClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CLIENT_STATE_FIELD_NUMBER: builtins.int + # client state associated with the request identifier + @property + def upgraded_client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + upgraded_client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"upgraded_client_state",b"upgraded_client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_client_state",b"upgraded_client_state"]) -> None: ... +global___QueryUpgradedClientStateResponse = QueryUpgradedClientStateResponse + +# QueryUpgradedConsensusStateRequest is the request type for the +# Query/UpgradedConsensusState RPC method +class QueryUpgradedConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryUpgradedConsensusStateRequest = QueryUpgradedConsensusStateRequest + +# QueryUpgradedConsensusStateResponse is the response type for the +# Query/UpgradedConsensusState RPC method. +class QueryUpgradedConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + UPGRADED_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + # Consensus state associated with the request identifier + @property + def upgraded_consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + upgraded_consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"upgraded_consensus_state",b"upgraded_consensus_state"]) -> None: ... +global___QueryUpgradedConsensusStateResponse = QueryUpgradedConsensusStateResponse diff --git a/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..ea22653 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/query_pb2_grpc.pyi @@ -0,0 +1,116 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ClientState queries an IBC light client. + ClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStateRequest, + global___QueryClientStateResponse] = ... + + # ClientStates queries all the IBC light clients of a chain. + ClientStates:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStatesRequest, + global___QueryClientStatesResponse] = ... + + # ConsensusState queries a consensus state associated with a client state at + # a given height. + ConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryConsensusStateRequest, + global___QueryConsensusStateResponse] = ... + + # ConsensusStates queries all the consensus state associated with a given + # client. + ConsensusStates:grpc.UnaryUnaryMultiCallable[ + global___QueryConsensusStatesRequest, + global___QueryConsensusStatesResponse] = ... + + # Status queries the status of an IBC client. + ClientStatus:grpc.UnaryUnaryMultiCallable[ + global___QueryClientStatusRequest, + global___QueryClientStatusResponse] = ... + + # ClientParams queries all parameters of the ibc client. + ClientParams:grpc.UnaryUnaryMultiCallable[ + global___QueryClientParamsRequest, + global___QueryClientParamsResponse] = ... + + # UpgradedClientState queries an Upgraded IBC light client. + UpgradedClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedClientStateRequest, + global___QueryUpgradedClientStateResponse] = ... + + # UpgradedConsensusState queries an Upgraded IBC consensus state. + UpgradedConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryUpgradedConsensusStateRequest, + global___QueryUpgradedConsensusStateResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # ClientState queries an IBC light client. + @abc.abstractmethod + def ClientState(self, + request: global___QueryClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStateResponse: ... + + # ClientStates queries all the IBC light clients of a chain. + @abc.abstractmethod + def ClientStates(self, + request: global___QueryClientStatesRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStatesResponse: ... + + # ConsensusState queries a consensus state associated with a client state at + # a given height. + @abc.abstractmethod + def ConsensusState(self, + request: global___QueryConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConsensusStateResponse: ... + + # ConsensusStates queries all the consensus state associated with a given + # client. + @abc.abstractmethod + def ConsensusStates(self, + request: global___QueryConsensusStatesRequest, + context: grpc.ServicerContext, + ) -> global___QueryConsensusStatesResponse: ... + + # Status queries the status of an IBC client. + @abc.abstractmethod + def ClientStatus(self, + request: global___QueryClientStatusRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientStatusResponse: ... + + # ClientParams queries all parameters of the ibc client. + @abc.abstractmethod + def ClientParams(self, + request: global___QueryClientParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientParamsResponse: ... + + # UpgradedClientState queries an Upgraded IBC light client. + @abc.abstractmethod + def UpgradedClientState(self, + request: global___QueryUpgradedClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedClientStateResponse: ... + + # UpgradedConsensusState queries an Upgraded IBC consensus state. + @abc.abstractmethod + def UpgradedConsensusState(self, + request: global___QueryUpgradedConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryUpgradedConsensusStateResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2.pyi new file mode 100644 index 0000000..9e212a6 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/tx_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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgCreateClient defines a message to create an IBC client +class MsgCreateClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_STATE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # light client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # consensus state associated with the client that corresponds to a given + # height. + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"signer",b"signer"]) -> None: ... +global___MsgCreateClient = MsgCreateClient + +# MsgCreateClientResponse defines the Msg/CreateClient response type. +class MsgCreateClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateClientResponse = MsgCreateClientResponse + +# MsgUpdateClient defines an sdk.Msg to update a IBC client state using +# the given header. +class MsgUpdateClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + HEADER_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # header to update the light client + @property + def header(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + header : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header",b"header",u"signer",b"signer"]) -> None: ... +global___MsgUpdateClient = MsgUpdateClient + +# MsgUpdateClientResponse defines the Msg/UpdateClient response type. +class MsgUpdateClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUpdateClientResponse = MsgUpdateClientResponse + +# MsgUpgradeClient defines an sdk.Msg to upgrade an IBC client to a new client +# state +class MsgUpgradeClient(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + PROOF_UPGRADE_CLIENT_FIELD_NUMBER: builtins.int + PROOF_UPGRADE_CONSENSUS_STATE_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # upgraded client state + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + # upgraded consensus state, only contains enough information to serve as a + # basis of trust in update logic + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # proof that old chain committed to new client + proof_upgrade_client: builtins.bytes = ... + # proof that old chain committed to new consensus state + proof_upgrade_consensus_state: builtins.bytes = ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof_upgrade_client : builtins.bytes = ..., + proof_upgrade_consensus_state : builtins.bytes = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_state",b"consensus_state",u"proof_upgrade_client",b"proof_upgrade_client",u"proof_upgrade_consensus_state",b"proof_upgrade_consensus_state",u"signer",b"signer"]) -> None: ... +global___MsgUpgradeClient = MsgUpgradeClient + +# MsgUpgradeClientResponse defines the Msg/UpgradeClient response type. +class MsgUpgradeClientResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgUpgradeClientResponse = MsgUpgradeClientResponse + +# MsgSubmitMisbehaviour defines an sdk.Msg type that submits Evidence for +# light client misbehaviour. +class MsgSubmitMisbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + MISBEHAVIOUR_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + # client unique identifier + client_id: typing.Text = ... + # misbehaviour used for freezing the light client + @property + def misbehaviour(self) -> google.protobuf.any_pb2.Any: ... + # signer address + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + misbehaviour : typing.Optional[google.protobuf.any_pb2.Any] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"misbehaviour",b"misbehaviour"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"misbehaviour",b"misbehaviour",u"signer",b"signer"]) -> None: ... +global___MsgSubmitMisbehaviour = MsgSubmitMisbehaviour + +# MsgSubmitMisbehaviourResponse defines the Msg/SubmitMisbehaviour response +# type. +class MsgSubmitMisbehaviourResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgSubmitMisbehaviourResponse = MsgSubmitMisbehaviourResponse diff --git a/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..254b929 --- /dev/null +++ b/pyband/proto/ibc/core/client/v1/tx_pb2_grpc.pyi @@ -0,0 +1,64 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/client Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # CreateClient defines a rpc handler method for MsgCreateClient. + CreateClient:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateClient, + global___MsgCreateClientResponse] = ... + + # UpdateClient defines a rpc handler method for MsgUpdateClient. + UpdateClient:grpc.UnaryUnaryMultiCallable[ + global___MsgUpdateClient, + global___MsgUpdateClientResponse] = ... + + # UpgradeClient defines a rpc handler method for MsgUpgradeClient. + UpgradeClient:grpc.UnaryUnaryMultiCallable[ + global___MsgUpgradeClient, + global___MsgUpgradeClientResponse] = ... + + # SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. + SubmitMisbehaviour:grpc.UnaryUnaryMultiCallable[ + global___MsgSubmitMisbehaviour, + global___MsgSubmitMisbehaviourResponse] = ... + + +# Msg defines the ibc/client Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # CreateClient defines a rpc handler method for MsgCreateClient. + @abc.abstractmethod + def CreateClient(self, + request: global___MsgCreateClient, + context: grpc.ServicerContext, + ) -> global___MsgCreateClientResponse: ... + + # UpdateClient defines a rpc handler method for MsgUpdateClient. + @abc.abstractmethod + def UpdateClient(self, + request: global___MsgUpdateClient, + context: grpc.ServicerContext, + ) -> global___MsgUpdateClientResponse: ... + + # UpgradeClient defines a rpc handler method for MsgUpgradeClient. + @abc.abstractmethod + def UpgradeClient(self, + request: global___MsgUpgradeClient, + context: grpc.ServicerContext, + ) -> global___MsgUpgradeClientResponse: ... + + # SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour. + @abc.abstractmethod + def SubmitMisbehaviour(self, + request: global___MsgSubmitMisbehaviour, + context: grpc.ServicerContext, + ) -> global___MsgSubmitMisbehaviourResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi new file mode 100644 index 0000000..89840e9 --- /dev/null +++ b/pyband/proto/ibc/core/commitment/v1/commitment_pb2.pyi @@ -0,0 +1,72 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import confio.proofs_pb2 +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MerkleRoot defines a merkle root hash. +# In the Cosmos SDK, the AppHash of a block header becomes the root. +class MerkleRoot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + HASH_FIELD_NUMBER: builtins.int + hash: builtins.bytes = ... + def __init__(self, + *, + hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash"]) -> None: ... +global___MerkleRoot = MerkleRoot + +# MerklePrefix is merkle path prefixed to the key. +# The constructed key from the Path and the key will be append(Path.KeyPath, +# append(Path.KeyPrefix, key...)) +class MerklePrefix(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_PREFIX_FIELD_NUMBER: builtins.int + key_prefix: builtins.bytes = ... + def __init__(self, + *, + key_prefix : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key_prefix",b"key_prefix"]) -> None: ... +global___MerklePrefix = MerklePrefix + +# MerklePath is the path used to verify commitment proofs, which can be an +# arbitrary structured object (defined by a commitment type). +# MerklePath is represented from root-to-leaf +class MerklePath(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_PATH_FIELD_NUMBER: builtins.int + @property + def key_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + key_path : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key_path",b"key_path"]) -> None: ... +global___MerklePath = MerklePath + +# MerkleProof is a wrapper type over a chain of CommitmentProofs. +# It demonstrates membership or non-membership for an element or set of +# elements, verifiable in conjunction with a known commitment root. Proofs +# should be succinct. +# MerkleProofs are ordered from leaf-to-root +class MerkleProof(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROOFS_FIELD_NUMBER: builtins.int + @property + def proofs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.CommitmentProof]: ... + def __init__(self, + *, + proofs : typing.Optional[typing.Iterable[confio.proofs_pb2.CommitmentProof]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proofs",b"proofs"]) -> None: ... +global___MerkleProof = MerkleProof diff --git a/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi b/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi new file mode 100644 index 0000000..b3cc64e --- /dev/null +++ b/pyband/proto/ibc/core/commitment/v1/commitment_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .commitment_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi new file mode 100644 index 0000000..f4c9290 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/connection_pb2.pyi @@ -0,0 +1,214 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import ibc.core.commitment.v1.commitment_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# State defines if a connection is in one of the following states: +# INIT, TRYOPEN, OPEN or UNINITIALIZED. +class State(_State, metaclass=_StateEnumTypeWrapper): + pass +class _State: + V = typing.NewType('V', builtins.int) +class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_State.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) + # A connection end has just started the opening handshake. + STATE_INIT = State.V(1) + # A connection end has acknowledged the handshake step on the counterparty + # chain. + STATE_TRYOPEN = State.V(2) + # A connection end has completed the handshake. + STATE_OPEN = State.V(3) + +# Default State +STATE_UNINITIALIZED_UNSPECIFIED = State.V(0) +# A connection end has just started the opening handshake. +STATE_INIT = State.V(1) +# A connection end has acknowledged the handshake step on the counterparty +# chain. +STATE_TRYOPEN = State.V(2) +# A connection end has completed the handshake. +STATE_OPEN = State.V(3) +global___State = State + + +# ICS03 - Connection Data Structures as defined in +# https://github.com/cosmos/ics/tree/master/spec/ics-003-connection-semantics#data-structures + +# ConnectionEnd defines a stateful object on a chain connected to another +# separate one. +# NOTE: there must only be 2 defined ConnectionEnds to establish +# a connection between two chains. +class ConnectionEnd(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + VERSIONS_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + # client associated with this connection. + client_id: typing.Text = ... + # IBC version which can be utilised to determine encodings or protocols for + # channels or packets utilising this connection. + @property + def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... + # current state of the connection end. + state: global___State.V = ... + # counterparty chain associated with this connection. + @property + def counterparty(self) -> global___Counterparty: ... + # delay period that must pass before a consensus state can be used for + # packet-verification NOTE: delay period logic is only implemented by some + # clients. + delay_period: builtins.int = ... + def __init__(self, + *, + client_id : typing.Text = ..., + versions : typing.Optional[typing.Iterable[global___Version]] = ..., + state : global___State.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + delay_period : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"state",b"state",u"versions",b"versions"]) -> None: ... +global___ConnectionEnd = ConnectionEnd + +# IdentifiedConnection defines a connection with additional connection +# identifier field. +class IdentifiedConnection(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ID_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + VERSIONS_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + # connection identifier. + id: typing.Text = ... + # client associated with this connection. + client_id: typing.Text = ... + # IBC version which can be utilised to determine encodings or protocols for + # channels or packets utilising this connection + @property + def versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Version]: ... + # current state of the connection end. + state: global___State.V = ... + # counterparty chain associated with this connection. + @property + def counterparty(self) -> global___Counterparty: ... + # delay period associated with this connection. + delay_period: builtins.int = ... + def __init__(self, + *, + id : typing.Text = ..., + client_id : typing.Text = ..., + versions : typing.Optional[typing.Iterable[global___Version]] = ..., + state : global___State.V = ..., + counterparty : typing.Optional[global___Counterparty] = ..., + delay_period : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"id",b"id",u"state",b"state",u"versions",b"versions"]) -> None: ... +global___IdentifiedConnection = IdentifiedConnection + +# Counterparty defines the counterparty chain associated with a connection end. +class Counterparty(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + CONNECTION_ID_FIELD_NUMBER: builtins.int + PREFIX_FIELD_NUMBER: builtins.int + # identifies the client on the counterparty chain associated with a given + # connection. + client_id: typing.Text = ... + # identifies the connection end on the counterparty chain associated with a + # given connection. + connection_id: typing.Text = ... + # commitment merkle prefix of the counterparty chain. + @property + def prefix(self) -> ibc.core.commitment.v1.commitment_pb2.MerklePrefix: ... + def __init__(self, + *, + client_id : typing.Text = ..., + connection_id : typing.Text = ..., + prefix : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerklePrefix] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"prefix",b"prefix"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"connection_id",b"connection_id",u"prefix",b"prefix"]) -> None: ... +global___Counterparty = Counterparty + +# ClientPaths define all the connection paths for a client state. +class ClientPaths(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATHS_FIELD_NUMBER: builtins.int + # list of connection paths + @property + def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"paths",b"paths"]) -> None: ... +global___ClientPaths = ClientPaths + +# ConnectionPaths define all the connection paths for a given client state. +class ConnectionPaths(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PATHS_FIELD_NUMBER: builtins.int + # client state unique identifier + client_id: typing.Text = ... + # list of connection paths + @property + def paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + client_id : typing.Text = ..., + paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"paths",b"paths"]) -> None: ... +global___ConnectionPaths = ConnectionPaths + +# Version defines the versioning scheme used to negotiate the IBC verison in +# the connection handshake. +class Version(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIER_FIELD_NUMBER: builtins.int + FEATURES_FIELD_NUMBER: builtins.int + # unique version identifier + identifier: typing.Text = ... + # list of features compatible with the specified identifier + @property + def features(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + identifier : typing.Text = ..., + features : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"features",b"features",u"identifier",b"identifier"]) -> None: ... +global___Version = Version + +# Params defines the set of Connection parameters. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_EXPECTED_TIME_PER_BLOCK_FIELD_NUMBER: builtins.int + # maximum expected time per block (in nanoseconds), used to enforce block delay. This parameter should reflect the + # largest amount of time that the chain might reasonably take to produce the next block under normal operating + # conditions. A safe choice is 3-5x the expected time per block. + max_expected_time_per_block: builtins.int = ... + def __init__(self, + *, + max_expected_time_per_block : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_expected_time_per_block",b"max_expected_time_per_block"]) -> None: ... +global___Params = Params diff --git a/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi new file mode 100644 index 0000000..1c431c3 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/connection_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .connection_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2.pyi new file mode 100644 index 0000000..8855187 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/genesis_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.internal.containers +import google.protobuf.message +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc connection submodule's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTIONS_FIELD_NUMBER: builtins.int + CLIENT_CONNECTION_PATHS_FIELD_NUMBER: builtins.int + NEXT_CONNECTION_SEQUENCE_FIELD_NUMBER: builtins.int + PARAMS_FIELD_NUMBER: builtins.int + @property + def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... + @property + def client_connection_paths(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.ConnectionPaths]: ... + # the sequence for the next generated connection identifier + next_connection_sequence: builtins.int = ... + @property + def params(self) -> ibc.core.connection.v1.connection_pb2.Params: ... + def __init__(self, + *, + connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., + client_connection_paths : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.ConnectionPaths]] = ..., + next_connection_sequence : builtins.int = ..., + params : typing.Optional[ibc.core.connection.v1.connection_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"client_connection_paths",b"client_connection_paths",u"connections",b"connections",u"next_connection_sequence",b"next_connection_sequence",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2.pyi new file mode 100644 index 0000000..d5fad51 --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/query_pb2.pyi @@ -0,0 +1,224 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 ibc.core.client.v1.client_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryConnectionRequest is the request type for the Query/Connection RPC +# method +class QueryConnectionRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + # connection unique identifier + connection_id: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... +global___QueryConnectionRequest = QueryConnectionRequest + +# QueryConnectionResponse is the response type for the Query/Connection RPC +# method. Besides the connection end, it includes a proof and the height from +# which the proof was retrieved. +class QueryConnectionResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # connection associated with the request identifier + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionResponse = QueryConnectionResponse + +# QueryConnectionsRequest is the request type for the Query/Connections RPC +# method +class QueryConnectionsRequest(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: ... + 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___QueryConnectionsRequest = QueryConnectionsRequest + +# QueryConnectionsResponse is the response type for the Query/Connections RPC +# method. +class QueryConnectionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTIONS_FIELD_NUMBER: builtins.int + PAGINATION_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # list of stored connections of the chain. + @property + def connections(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]: ... + # pagination response + @property + def pagination(self) -> cosmos.base.query.v1beta1.pagination_pb2.PageResponse: ... + # query block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connections : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.IdentifiedConnection]] = ..., + pagination : typing.Optional[cosmos.base.query.v1beta1.pagination_pb2.PageResponse] = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height",u"pagination",b"pagination"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connections",b"connections",u"height",b"height",u"pagination",b"pagination"]) -> None: ... +global___QueryConnectionsResponse = QueryConnectionsResponse + +# QueryClientConnectionsRequest is the request type for the +# Query/ClientConnections RPC method +class QueryClientConnectionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + # client identifier associated with a connection + client_id: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id"]) -> None: ... +global___QueryClientConnectionsRequest = QueryClientConnectionsRequest + +# QueryClientConnectionsResponse is the response type for the +# Query/ClientConnections RPC method +class QueryClientConnectionsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_PATHS_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # slice of all the connection paths associated with a client. + @property + def connection_paths(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was generated + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + connection_paths : typing.Optional[typing.Iterable[typing.Text]] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_paths",b"connection_paths",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryClientConnectionsResponse = QueryClientConnectionsResponse + +# QueryConnectionClientStateRequest is the request type for the +# Query/ConnectionClientState RPC method +class QueryConnectionClientStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + # connection identifier + connection_id: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id"]) -> None: ... +global___QueryConnectionClientStateRequest = QueryConnectionClientStateRequest + +# QueryConnectionClientStateResponse is the response type for the +# Query/ConnectionClientState RPC method +class QueryConnectionClientStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IDENTIFIED_CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # client state associated with the channel + @property + def identified_client_state(self) -> ibc.core.client.v1.client_pb2.IdentifiedClientState: ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + identified_client_state : typing.Optional[ibc.core.client.v1.client_pb2.IdentifiedClientState] = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"identified_client_state",b"identified_client_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionClientStateResponse = QueryConnectionClientStateResponse + +# QueryConnectionConsensusStateRequest is the request type for the +# Query/ConnectionConsensusState RPC method +class QueryConnectionConsensusStateRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + REVISION_NUMBER_FIELD_NUMBER: builtins.int + REVISION_HEIGHT_FIELD_NUMBER: builtins.int + # connection identifier + connection_id: typing.Text = ... + revision_number: builtins.int = ... + revision_height: builtins.int = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + revision_number : builtins.int = ..., + revision_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"revision_height",b"revision_height",u"revision_number",b"revision_number"]) -> None: ... +global___QueryConnectionConsensusStateRequest = QueryConnectionConsensusStateRequest + +# QueryConnectionConsensusStateResponse is the response type for the +# Query/ConnectionConsensusState RPC method +class QueryConnectionConsensusStateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + # consensus state associated with the channel + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + # client ID associated with the consensus state + client_id: typing.Text = ... + # merkle proof of existence + proof: builtins.bytes = ... + # height at which the proof was retrieved + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + client_id : typing.Text = ..., + proof : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"consensus_state",b"consensus_state",u"proof",b"proof",u"proof_height",b"proof_height"]) -> None: ... +global___QueryConnectionConsensusStateResponse = QueryConnectionConsensusStateResponse diff --git a/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..cc745db --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/query_pb2_grpc.pyi @@ -0,0 +1,82 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .query_pb2 import * +# Query provides defines the gRPC querier service +class QueryStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # Connection queries an IBC connection end. + Connection:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionRequest, + global___QueryConnectionResponse] = ... + + # Connections queries all the IBC connections of a chain. + Connections:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionsRequest, + global___QueryConnectionsResponse] = ... + + # ClientConnections queries the connection paths associated with a client + # state. + ClientConnections:grpc.UnaryUnaryMultiCallable[ + global___QueryClientConnectionsRequest, + global___QueryClientConnectionsResponse] = ... + + # ConnectionClientState queries the client state associated with the + # connection. + ConnectionClientState:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionClientStateRequest, + global___QueryConnectionClientStateResponse] = ... + + # ConnectionConsensusState queries the consensus state associated with the + # connection. + ConnectionConsensusState:grpc.UnaryUnaryMultiCallable[ + global___QueryConnectionConsensusStateRequest, + global___QueryConnectionConsensusStateResponse] = ... + + +# Query provides defines the gRPC querier service +class QueryServicer(metaclass=abc.ABCMeta): + # Connection queries an IBC connection end. + @abc.abstractmethod + def Connection(self, + request: global___QueryConnectionRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionResponse: ... + + # Connections queries all the IBC connections of a chain. + @abc.abstractmethod + def Connections(self, + request: global___QueryConnectionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionsResponse: ... + + # ClientConnections queries the connection paths associated with a client + # state. + @abc.abstractmethod + def ClientConnections(self, + request: global___QueryClientConnectionsRequest, + context: grpc.ServicerContext, + ) -> global___QueryClientConnectionsResponse: ... + + # ConnectionClientState queries the client state associated with the + # connection. + @abc.abstractmethod + def ConnectionClientState(self, + request: global___QueryConnectionClientStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionClientStateResponse: ... + + # ConnectionConsensusState queries the consensus state associated with the + # connection. + @abc.abstractmethod + def ConnectionConsensusState(self, + request: global___QueryConnectionConsensusStateRequest, + context: grpc.ServicerContext, + ) -> global___QueryConnectionConsensusStateResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi new file mode 100644 index 0000000..9df15de --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2.pyi @@ -0,0 +1,205 @@ +""" +@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 ibc.core.client.v1.client_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgConnectionOpenInit defines the msg sent by an account on Chain A to +# initialize a connection with Chain B. +class MsgConnectionOpenInit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... + @property + def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... + delay_period: builtins.int = ... + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., + version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., + delay_period : builtins.int = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"counterparty",b"counterparty",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"counterparty",b"counterparty",u"delay_period",b"delay_period",u"signer",b"signer",u"version",b"version"]) -> None: ... +global___MsgConnectionOpenInit = MsgConnectionOpenInit + +# MsgConnectionOpenInitResponse defines the Msg/ConnectionOpenInit response +# type. +class MsgConnectionOpenInitResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenInitResponse = MsgConnectionOpenInitResponse + +# MsgConnectionOpenTry defines a msg sent by a Relayer to try to open a +# connection on Chain B. +class MsgConnectionOpenTry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + PREVIOUS_CONNECTION_ID_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + COUNTERPARTY_FIELD_NUMBER: builtins.int + DELAY_PERIOD_FIELD_NUMBER: builtins.int + COUNTERPARTY_VERSIONS_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_INIT_FIELD_NUMBER: builtins.int + PROOF_CLIENT_FIELD_NUMBER: builtins.int + PROOF_CONSENSUS_FIELD_NUMBER: builtins.int + CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + # in the case of crossing hello's, when both chains call OpenInit, we need + # the connection identifier of the previous connection in state INIT + previous_connection_id: typing.Text = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + @property + def counterparty(self) -> ibc.core.connection.v1.connection_pb2.Counterparty: ... + delay_period: builtins.int = ... + @property + def counterparty_versions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[ibc.core.connection.v1.connection_pb2.Version]: ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # proof of the initialization the connection on Chain A: `UNITIALIZED -> + # INIT` + proof_init: builtins.bytes = ... + # proof of client state included in message + proof_client: builtins.bytes = ... + # proof of client consensus state + proof_consensus: builtins.bytes = ... + @property + def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + client_id : typing.Text = ..., + previous_connection_id : typing.Text = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + counterparty : typing.Optional[ibc.core.connection.v1.connection_pb2.Counterparty] = ..., + delay_period : builtins.int = ..., + counterparty_versions : typing.Optional[typing.Iterable[ibc.core.connection.v1.connection_pb2.Version]] = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_init : builtins.bytes = ..., + proof_client : builtins.bytes = ..., + proof_consensus : builtins.bytes = ..., + consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"counterparty",b"counterparty",u"counterparty_versions",b"counterparty_versions",u"delay_period",b"delay_period",u"previous_connection_id",b"previous_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_init",b"proof_init",u"signer",b"signer"]) -> None: ... +global___MsgConnectionOpenTry = MsgConnectionOpenTry + +# MsgConnectionOpenTryResponse defines the Msg/ConnectionOpenTry response type. +class MsgConnectionOpenTryResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenTryResponse = MsgConnectionOpenTryResponse + +# MsgConnectionOpenAck defines a msg sent by a Relayer to Chain A to +# acknowledge the change of connection state to TRYOPEN on Chain B. +class MsgConnectionOpenAck(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + COUNTERPARTY_CONNECTION_ID_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_TRY_FIELD_NUMBER: builtins.int + PROOF_CLIENT_FIELD_NUMBER: builtins.int + PROOF_CONSENSUS_FIELD_NUMBER: builtins.int + CONSENSUS_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + connection_id: typing.Text = ... + counterparty_connection_id: typing.Text = ... + @property + def version(self) -> ibc.core.connection.v1.connection_pb2.Version: ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # proof of the initialization the connection on Chain B: `UNITIALIZED -> + # TRYOPEN` + proof_try: builtins.bytes = ... + # proof of client state included in message + proof_client: builtins.bytes = ... + # proof of client consensus state + proof_consensus: builtins.bytes = ... + @property + def consensus_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + counterparty_connection_id : typing.Text = ..., + version : typing.Optional[ibc.core.connection.v1.connection_pb2.Version] = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_try : builtins.bytes = ..., + proof_client : builtins.bytes = ..., + proof_consensus : builtins.bytes = ..., + consensus_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"consensus_height",b"consensus_height",u"proof_height",b"proof_height",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"connection_id",b"connection_id",u"consensus_height",b"consensus_height",u"counterparty_connection_id",b"counterparty_connection_id",u"proof_client",b"proof_client",u"proof_consensus",b"proof_consensus",u"proof_height",b"proof_height",u"proof_try",b"proof_try",u"signer",b"signer",u"version",b"version"]) -> None: ... +global___MsgConnectionOpenAck = MsgConnectionOpenAck + +# MsgConnectionOpenAckResponse defines the Msg/ConnectionOpenAck response type. +class MsgConnectionOpenAckResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenAckResponse = MsgConnectionOpenAckResponse + +# MsgConnectionOpenConfirm defines a msg sent by a Relayer to Chain B to +# acknowledge the change of connection state to OPEN on Chain A. +class MsgConnectionOpenConfirm(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CONNECTION_ID_FIELD_NUMBER: builtins.int + PROOF_ACK_FIELD_NUMBER: builtins.int + PROOF_HEIGHT_FIELD_NUMBER: builtins.int + SIGNER_FIELD_NUMBER: builtins.int + connection_id: typing.Text = ... + # proof for the change of the connection state on Chain A: `INIT -> OPEN` + proof_ack: builtins.bytes = ... + @property + def proof_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + signer: typing.Text = ... + def __init__(self, + *, + connection_id : typing.Text = ..., + proof_ack : builtins.bytes = ..., + proof_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + signer : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_height",b"proof_height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection_id",b"connection_id",u"proof_ack",b"proof_ack",u"proof_height",b"proof_height",u"signer",b"signer"]) -> None: ... +global___MsgConnectionOpenConfirm = MsgConnectionOpenConfirm + +# MsgConnectionOpenConfirmResponse defines the Msg/ConnectionOpenConfirm +# response type. +class MsgConnectionOpenConfirmResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgConnectionOpenConfirmResponse = MsgConnectionOpenConfirmResponse diff --git a/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..981d92e --- /dev/null +++ b/pyband/proto/ibc/core/connection/v1/tx_pb2_grpc.pyi @@ -0,0 +1,66 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the ibc/connection Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. + ConnectionOpenInit:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenInit, + global___MsgConnectionOpenInitResponse] = ... + + # ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + ConnectionOpenTry:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenTry, + global___MsgConnectionOpenTryResponse] = ... + + # ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + ConnectionOpenAck:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenAck, + global___MsgConnectionOpenAckResponse] = ... + + # ConnectionOpenConfirm defines a rpc handler method for + # MsgConnectionOpenConfirm. + ConnectionOpenConfirm:grpc.UnaryUnaryMultiCallable[ + global___MsgConnectionOpenConfirm, + global___MsgConnectionOpenConfirmResponse] = ... + + +# Msg defines the ibc/connection Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit. + @abc.abstractmethod + def ConnectionOpenInit(self, + request: global___MsgConnectionOpenInit, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenInitResponse: ... + + # ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry. + @abc.abstractmethod + def ConnectionOpenTry(self, + request: global___MsgConnectionOpenTry, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenTryResponse: ... + + # ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck. + @abc.abstractmethod + def ConnectionOpenAck(self, + request: global___MsgConnectionOpenAck, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenAckResponse: ... + + # ConnectionOpenConfirm defines a rpc handler method for + # MsgConnectionOpenConfirm. + @abc.abstractmethod + def ConnectionOpenConfirm(self, + request: global___MsgConnectionOpenConfirm, + context: grpc.ServicerContext, + ) -> global___MsgConnectionOpenConfirmResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2.pyi new file mode 100644 index 0000000..8c72673 --- /dev/null +++ b/pyband/proto/ibc/core/types/v1/genesis_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 ibc.core.channel.v1.genesis_pb2 +import ibc.core.client.v1.genesis_pb2 +import ibc.core.connection.v1.genesis_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the ibc module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_GENESIS_FIELD_NUMBER: builtins.int + CONNECTION_GENESIS_FIELD_NUMBER: builtins.int + CHANNEL_GENESIS_FIELD_NUMBER: builtins.int + # ICS002 - Clients genesis state + @property + def client_genesis(self) -> ibc.core.client.v1.genesis_pb2.GenesisState: ... + # ICS003 - Connections genesis state + @property + def connection_genesis(self) -> ibc.core.connection.v1.genesis_pb2.GenesisState: ... + # ICS004 - Channel genesis state + @property + def channel_genesis(self) -> ibc.core.channel.v1.genesis_pb2.GenesisState: ... + def __init__(self, + *, + client_genesis : typing.Optional[ibc.core.client.v1.genesis_pb2.GenesisState] = ..., + connection_genesis : typing.Optional[ibc.core.connection.v1.genesis_pb2.GenesisState] = ..., + channel_genesis : typing.Optional[ibc.core.channel.v1.genesis_pb2.GenesisState] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_genesis",b"channel_genesis",u"client_genesis",b"client_genesis",u"connection_genesis",b"connection_genesis"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi b/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/ibc/core/types/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi new file mode 100644 index 0000000..70810df --- /dev/null +++ b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2.pyi @@ -0,0 +1,32 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import ibc.core.client.v1.client_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ClientState defines a loopback (localhost) client. It requires (read-only) +# access to keys outside the client prefix. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + # self chain ID + chain_id: typing.Text = ... + # self latest block height + @property + def height(self) -> ibc.core.client.v1.client_pb2.Height: ... + def __init__(self, + *, + chain_id : typing.Text = ..., + height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"height",b"height"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"height",b"height"]) -> None: ... +global___ClientState = ClientState diff --git a/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi new file mode 100644 index 0000000..befdf61 --- /dev/null +++ b/pyband/proto/ibc/lightclients/localhost/v1/localhost_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .localhost_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi new file mode 100644 index 0000000..efedf25 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2.pyi @@ -0,0 +1,388 @@ +""" +@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.enum_type_wrapper +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# DataType defines the type of solo machine proof being created. This is done +# to preserve uniqueness of different data sign byte encodings. +class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): + pass +class _DataType: + V = typing.NewType('V', builtins.int) +class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) + # Data type for client state verification + DATA_TYPE_CLIENT_STATE = DataType.V(1) + # Data type for consensus state verification + DATA_TYPE_CONSENSUS_STATE = DataType.V(2) + # Data type for connection state verification + DATA_TYPE_CONNECTION_STATE = DataType.V(3) + # Data type for channel state verification + DATA_TYPE_CHANNEL_STATE = DataType.V(4) + # Data type for packet commitment verification + DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) + # Data type for packet acknowledgement verification + DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) + # Data type for packet receipt absence verification + DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) + # Data type for next sequence recv verification + DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) + # Data type for header verification + DATA_TYPE_HEADER = DataType.V(9) + +# Default State +DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) +# Data type for client state verification +DATA_TYPE_CLIENT_STATE = DataType.V(1) +# Data type for consensus state verification +DATA_TYPE_CONSENSUS_STATE = DataType.V(2) +# Data type for connection state verification +DATA_TYPE_CONNECTION_STATE = DataType.V(3) +# Data type for channel state verification +DATA_TYPE_CHANNEL_STATE = DataType.V(4) +# Data type for packet commitment verification +DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) +# Data type for packet acknowledgement verification +DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) +# Data type for packet receipt absence verification +DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) +# Data type for next sequence recv verification +DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) +# Data type for header verification +DATA_TYPE_HEADER = DataType.V(9) +global___DataType = DataType + + +# ClientState defines a solo machine client that tracks the current consensus +# state and if the client is frozen. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + FROZEN_SEQUENCE_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER: builtins.int + # latest sequence of the client state + sequence: builtins.int = ... + # frozen sequence of the solo machine + frozen_sequence: builtins.int = ... + @property + def consensus_state(self) -> global___ConsensusState: ... + # when set to true, will allow governance to update a solo machine client. + # The client will be unfrozen if it is frozen. + allow_update_after_proposal: builtins.bool = ... + def __init__(self, + *, + sequence : builtins.int = ..., + frozen_sequence : builtins.int = ..., + consensus_state : typing.Optional[global___ConsensusState] = ..., + allow_update_after_proposal : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_proposal",b"allow_update_after_proposal",u"consensus_state",b"consensus_state",u"frozen_sequence",b"frozen_sequence",u"sequence",b"sequence"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines a solo machine consensus state. The sequence of a +# consensus state is contained in the "height" key used in storing the +# consensus state. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + # public key of the solo machine + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + # diversifier allows the same public key to be re-used across different solo + # machine clients (potentially on different chains) without being considered + # misbehaviour. + diversifier: typing.Text = ... + timestamp: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + diversifier : typing.Text = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"diversifier",b"diversifier",u"public_key",b"public_key",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Header defines a solo machine consensus header +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + NEW_PUBLIC_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # sequence to update solo machine public key at + sequence: builtins.int = ... + timestamp: builtins.int = ... + signature: builtins.bytes = ... + @property + def new_public_key(self) -> google.protobuf.any_pb2.Any: ... + new_diversifier: typing.Text = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + signature : builtins.bytes = ..., + new_public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_public_key",b"new_public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_public_key",b"new_public_key",u"sequence",b"sequence",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___Header = Header + +# Misbehaviour defines misbehaviour for a solo machine which consists +# of a sequence and two signatures over different messages at that sequence. +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + SIGNATURE_ONE_FIELD_NUMBER: builtins.int + SIGNATURE_TWO_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + sequence: builtins.int = ... + @property + def signature_one(self) -> global___SignatureAndData: ... + @property + def signature_two(self) -> global___SignatureAndData: ... + def __init__(self, + *, + client_id : typing.Text = ..., + sequence : builtins.int = ..., + signature_one : typing.Optional[global___SignatureAndData] = ..., + signature_two : typing.Optional[global___SignatureAndData] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"sequence",b"sequence",u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# SignatureAndData contains a signature and the data signed over to create that +# signature. +class SignatureAndData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature: builtins.bytes = ... + data_type: global___DataType.V = ... + data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature : builtins.bytes = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___SignatureAndData = SignatureAndData + +# TimestampedSignatureData contains the signature data and the timestamp of the +# signature. +class TimestampedSignatureData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature_data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature_data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signature_data",b"signature_data",u"timestamp",b"timestamp"]) -> None: ... +global___TimestampedSignatureData = TimestampedSignatureData + +# SignBytes defines the signed bytes used for signature verification. +class SignBytes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + sequence: builtins.int = ... + timestamp: builtins.int = ... + diversifier: typing.Text = ... + # type of the data used + data_type: global___DataType.V = ... + # marshaled data + data: builtins.bytes = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + diversifier : typing.Text = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"diversifier",b"diversifier",u"sequence",b"sequence",u"timestamp",b"timestamp"]) -> None: ... +global___SignBytes = SignBytes + +# HeaderData returns the SignBytes data for update verification. +class HeaderData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEW_PUB_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # header public key + @property + def new_pub_key(self) -> google.protobuf.any_pb2.Any: ... + # header diversifier + new_diversifier: typing.Text = ... + def __init__(self, + *, + new_pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_pub_key",b"new_pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_pub_key",b"new_pub_key"]) -> None: ... +global___HeaderData = HeaderData + +# ClientStateData returns the SignBytes data for client state verification. +class ClientStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"path",b"path"]) -> None: ... +global___ClientStateData = ClientStateData + +# ConsensusStateData returns the SignBytes data for consensus state +# verification. +class ConsensusStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"path",b"path"]) -> None: ... +global___ConsensusStateData = ConsensusStateData + +# ConnectionStateData returns the SignBytes data for connection state +# verification. +class ConnectionStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONNECTION_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + def __init__(self, + *, + path : builtins.bytes = ..., + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"path",b"path"]) -> None: ... +global___ConnectionStateData = ConnectionStateData + +# ChannelStateData returns the SignBytes data for channel state +# verification. +class ChannelStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + def __init__(self, + *, + path : builtins.bytes = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"path",b"path"]) -> None: ... +global___ChannelStateData = ChannelStateData + +# PacketCommitmentData returns the SignBytes data for packet commitment +# verification. +class PacketCommitmentData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + COMMITMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + commitment: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + commitment : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"path",b"path"]) -> None: ... +global___PacketCommitmentData = PacketCommitmentData + +# PacketAcknowledgementData returns the SignBytes data for acknowledgement +# verification. +class PacketAcknowledgementData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + acknowledgement: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + acknowledgement : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"path",b"path"]) -> None: ... +global___PacketAcknowledgementData = PacketAcknowledgementData + +# PacketReceiptAbsenceData returns the SignBytes data for +# packet receipt absence verification. +class PacketReceiptAbsenceData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path"]) -> None: ... +global___PacketReceiptAbsenceData = PacketReceiptAbsenceData + +# NextSequenceRecvData returns the SignBytes data for verification of the next +# sequence to be received. +class NextSequenceRecvData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + NEXT_SEQ_RECV_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + next_seq_recv: builtins.int = ... + def __init__(self, + *, + path : builtins.bytes = ..., + next_seq_recv : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_seq_recv",b"next_seq_recv",u"path",b"path"]) -> None: ... +global___NextSequenceRecvData = NextSequenceRecvData diff --git a/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi new file mode 100644 index 0000000..7b3f6d9 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v1/solomachine_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .solomachine_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi new file mode 100644 index 0000000..da4ddd8 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2.pyi @@ -0,0 +1,388 @@ +""" +@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.enum_type_wrapper +import google.protobuf.message +import ibc.core.channel.v1.channel_pb2 +import ibc.core.connection.v1.connection_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# DataType defines the type of solo machine proof being created. This is done +# to preserve uniqueness of different data sign byte encodings. +class DataType(_DataType, metaclass=_DataTypeEnumTypeWrapper): + pass +class _DataType: + V = typing.NewType('V', builtins.int) +class _DataTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Default State + DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) + # Data type for client state verification + DATA_TYPE_CLIENT_STATE = DataType.V(1) + # Data type for consensus state verification + DATA_TYPE_CONSENSUS_STATE = DataType.V(2) + # Data type for connection state verification + DATA_TYPE_CONNECTION_STATE = DataType.V(3) + # Data type for channel state verification + DATA_TYPE_CHANNEL_STATE = DataType.V(4) + # Data type for packet commitment verification + DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) + # Data type for packet acknowledgement verification + DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) + # Data type for packet receipt absence verification + DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) + # Data type for next sequence recv verification + DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) + # Data type for header verification + DATA_TYPE_HEADER = DataType.V(9) + +# Default State +DATA_TYPE_UNINITIALIZED_UNSPECIFIED = DataType.V(0) +# Data type for client state verification +DATA_TYPE_CLIENT_STATE = DataType.V(1) +# Data type for consensus state verification +DATA_TYPE_CONSENSUS_STATE = DataType.V(2) +# Data type for connection state verification +DATA_TYPE_CONNECTION_STATE = DataType.V(3) +# Data type for channel state verification +DATA_TYPE_CHANNEL_STATE = DataType.V(4) +# Data type for packet commitment verification +DATA_TYPE_PACKET_COMMITMENT = DataType.V(5) +# Data type for packet acknowledgement verification +DATA_TYPE_PACKET_ACKNOWLEDGEMENT = DataType.V(6) +# Data type for packet receipt absence verification +DATA_TYPE_PACKET_RECEIPT_ABSENCE = DataType.V(7) +# Data type for next sequence recv verification +DATA_TYPE_NEXT_SEQUENCE_RECV = DataType.V(8) +# Data type for header verification +DATA_TYPE_HEADER = DataType.V(9) +global___DataType = DataType + + +# ClientState defines a solo machine client that tracks the current consensus +# state and if the client is frozen. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + IS_FROZEN_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_PROPOSAL_FIELD_NUMBER: builtins.int + # latest sequence of the client state + sequence: builtins.int = ... + # frozen sequence of the solo machine + is_frozen: builtins.bool = ... + @property + def consensus_state(self) -> global___ConsensusState: ... + # when set to true, will allow governance to update a solo machine client. + # The client will be unfrozen if it is frozen. + allow_update_after_proposal: builtins.bool = ... + def __init__(self, + *, + sequence : builtins.int = ..., + is_frozen : builtins.bool = ..., + consensus_state : typing.Optional[global___ConsensusState] = ..., + allow_update_after_proposal : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_proposal",b"allow_update_after_proposal",u"consensus_state",b"consensus_state",u"is_frozen",b"is_frozen",u"sequence",b"sequence"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines a solo machine consensus state. The sequence of a +# consensus state is contained in the "height" key used in storing the +# consensus state. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUBLIC_KEY_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + # public key of the solo machine + @property + def public_key(self) -> google.protobuf.any_pb2.Any: ... + # diversifier allows the same public key to be re-used across different solo + # machine clients (potentially on different chains) without being considered + # misbehaviour. + diversifier: typing.Text = ... + timestamp: builtins.int = ... + def __init__(self, + *, + public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + diversifier : typing.Text = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"public_key",b"public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"diversifier",b"diversifier",u"public_key",b"public_key",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Header defines a solo machine consensus header +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + NEW_PUBLIC_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # sequence to update solo machine public key at + sequence: builtins.int = ... + timestamp: builtins.int = ... + signature: builtins.bytes = ... + @property + def new_public_key(self) -> google.protobuf.any_pb2.Any: ... + new_diversifier: typing.Text = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + signature : builtins.bytes = ..., + new_public_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_public_key",b"new_public_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_public_key",b"new_public_key",u"sequence",b"sequence",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___Header = Header + +# Misbehaviour defines misbehaviour for a solo machine which consists +# of a sequence and two signatures over different messages at that sequence. +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + SEQUENCE_FIELD_NUMBER: builtins.int + SIGNATURE_ONE_FIELD_NUMBER: builtins.int + SIGNATURE_TWO_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + sequence: builtins.int = ... + @property + def signature_one(self) -> global___SignatureAndData: ... + @property + def signature_two(self) -> global___SignatureAndData: ... + def __init__(self, + *, + client_id : typing.Text = ..., + sequence : builtins.int = ..., + signature_one : typing.Optional[global___SignatureAndData] = ..., + signature_two : typing.Optional[global___SignatureAndData] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"sequence",b"sequence",u"signature_one",b"signature_one",u"signature_two",b"signature_two"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# SignatureAndData contains a signature and the data signed over to create that +# signature. +class SignatureAndData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature: builtins.bytes = ... + data_type: global___DataType.V = ... + data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature : builtins.bytes = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"signature",b"signature",u"timestamp",b"timestamp"]) -> None: ... +global___SignatureAndData = SignatureAndData + +# TimestampedSignatureData contains the signature data and the timestamp of the +# signature. +class TimestampedSignatureData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNATURE_DATA_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + signature_data: builtins.bytes = ... + timestamp: builtins.int = ... + def __init__(self, + *, + signature_data : builtins.bytes = ..., + timestamp : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signature_data",b"signature_data",u"timestamp",b"timestamp"]) -> None: ... +global___TimestampedSignatureData = TimestampedSignatureData + +# SignBytes defines the signed bytes used for signature verification. +class SignBytes(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SEQUENCE_FIELD_NUMBER: builtins.int + TIMESTAMP_FIELD_NUMBER: builtins.int + DIVERSIFIER_FIELD_NUMBER: builtins.int + DATA_TYPE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + sequence: builtins.int = ... + timestamp: builtins.int = ... + diversifier: typing.Text = ... + # type of the data used + data_type: global___DataType.V = ... + # marshaled data + data: builtins.bytes = ... + def __init__(self, + *, + sequence : builtins.int = ..., + timestamp : builtins.int = ..., + diversifier : typing.Text = ..., + data_type : global___DataType.V = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"data_type",b"data_type",u"diversifier",b"diversifier",u"sequence",b"sequence",u"timestamp",b"timestamp"]) -> None: ... +global___SignBytes = SignBytes + +# HeaderData returns the SignBytes data for update verification. +class HeaderData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NEW_PUB_KEY_FIELD_NUMBER: builtins.int + NEW_DIVERSIFIER_FIELD_NUMBER: builtins.int + # header public key + @property + def new_pub_key(self) -> google.protobuf.any_pb2.Any: ... + # header diversifier + new_diversifier: typing.Text = ... + def __init__(self, + *, + new_pub_key : typing.Optional[google.protobuf.any_pb2.Any] = ..., + new_diversifier : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"new_pub_key",b"new_pub_key"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"new_diversifier",b"new_diversifier",u"new_pub_key",b"new_pub_key"]) -> None: ... +global___HeaderData = HeaderData + +# ClientStateData returns the SignBytes data for client state verification. +class ClientStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CLIENT_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def client_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + client_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_state",b"client_state",u"path",b"path"]) -> None: ... +global___ClientStateData = ClientStateData + +# ConsensusStateData returns the SignBytes data for consensus state +# verification. +class ConsensusStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONSENSUS_STATE_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def consensus_state(self) -> google.protobuf.any_pb2.Any: ... + def __init__(self, + *, + path : builtins.bytes = ..., + consensus_state : typing.Optional[google.protobuf.any_pb2.Any] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_state",b"consensus_state",u"path",b"path"]) -> None: ... +global___ConsensusStateData = ConsensusStateData + +# ConnectionStateData returns the SignBytes data for connection state +# verification. +class ConnectionStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CONNECTION_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def connection(self) -> ibc.core.connection.v1.connection_pb2.ConnectionEnd: ... + def __init__(self, + *, + path : builtins.bytes = ..., + connection : typing.Optional[ibc.core.connection.v1.connection_pb2.ConnectionEnd] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"connection",b"connection"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"connection",b"connection",u"path",b"path"]) -> None: ... +global___ConnectionStateData = ConnectionStateData + +# ChannelStateData returns the SignBytes data for channel state +# verification. +class ChannelStateData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + CHANNEL_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + @property + def channel(self) -> ibc.core.channel.v1.channel_pb2.Channel: ... + def __init__(self, + *, + path : builtins.bytes = ..., + channel : typing.Optional[ibc.core.channel.v1.channel_pb2.Channel] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"channel",b"channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel",b"channel",u"path",b"path"]) -> None: ... +global___ChannelStateData = ChannelStateData + +# PacketCommitmentData returns the SignBytes data for packet commitment +# verification. +class PacketCommitmentData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + COMMITMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + commitment: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + commitment : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commitment",b"commitment",u"path",b"path"]) -> None: ... +global___PacketCommitmentData = PacketCommitmentData + +# PacketAcknowledgementData returns the SignBytes data for acknowledgement +# verification. +class PacketAcknowledgementData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + ACKNOWLEDGEMENT_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + acknowledgement: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + acknowledgement : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"acknowledgement",b"acknowledgement",u"path",b"path"]) -> None: ... +global___PacketAcknowledgementData = PacketAcknowledgementData + +# PacketReceiptAbsenceData returns the SignBytes data for +# packet receipt absence verification. +class PacketReceiptAbsenceData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + def __init__(self, + *, + path : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"path",b"path"]) -> None: ... +global___PacketReceiptAbsenceData = PacketReceiptAbsenceData + +# NextSequenceRecvData returns the SignBytes data for verification of the next +# sequence to be received. +class NextSequenceRecvData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PATH_FIELD_NUMBER: builtins.int + NEXT_SEQ_RECV_FIELD_NUMBER: builtins.int + path: builtins.bytes = ... + next_seq_recv: builtins.int = ... + def __init__(self, + *, + path : builtins.bytes = ..., + next_seq_recv : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_seq_recv",b"next_seq_recv",u"path",b"path"]) -> None: ... +global___NextSequenceRecvData = NextSequenceRecvData diff --git a/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi new file mode 100644 index 0000000..7b3f6d9 --- /dev/null +++ b/pyband/proto/ibc/lightclients/solomachine/v2/solomachine_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .solomachine_pb2 import * \ No newline at end of file diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi new file mode 100644 index 0000000..56e9d36 --- /dev/null +++ b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2.pyi @@ -0,0 +1,188 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import confio.proofs_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 ibc.core.client.v1.client_pb2 +import ibc.core.commitment.v1.commitment_pb2 +import tendermint.types.types_pb2 +import tendermint.types.validator_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ClientState from Tendermint tracks the current validator set, latest height, +# and a possible frozen height. +class ClientState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + TRUST_LEVEL_FIELD_NUMBER: builtins.int + TRUSTING_PERIOD_FIELD_NUMBER: builtins.int + UNBONDING_PERIOD_FIELD_NUMBER: builtins.int + MAX_CLOCK_DRIFT_FIELD_NUMBER: builtins.int + FROZEN_HEIGHT_FIELD_NUMBER: builtins.int + LATEST_HEIGHT_FIELD_NUMBER: builtins.int + PROOF_SPECS_FIELD_NUMBER: builtins.int + UPGRADE_PATH_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_EXPIRY_FIELD_NUMBER: builtins.int + ALLOW_UPDATE_AFTER_MISBEHAVIOUR_FIELD_NUMBER: builtins.int + chain_id: typing.Text = ... + @property + def trust_level(self) -> global___Fraction: ... + # duration of the period since the LastestTimestamp during which the + # submitted headers are valid for upgrade + @property + def trusting_period(self) -> google.protobuf.duration_pb2.Duration: ... + # duration of the staking unbonding period + @property + def unbonding_period(self) -> google.protobuf.duration_pb2.Duration: ... + # defines how much new (untrusted) header's Time can drift into the future. + @property + def max_clock_drift(self) -> google.protobuf.duration_pb2.Duration: ... + # Block height when the client was frozen due to a misbehaviour + @property + def frozen_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Latest height the client was updated to + @property + def latest_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + # Proof specifications used in verifying counterparty state + @property + def proof_specs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[confio.proofs_pb2.ProofSpec]: ... + # Path at which next upgraded client will be committed. + # Each element corresponds to the key for a single CommitmentProof in the + # chained proof. NOTE: ClientState must stored under + # `{upgradePath}/{upgradeHeight}/clientState` ConsensusState must be stored + # under `{upgradepath}/{upgradeHeight}/consensusState` For SDK chains using + # the default upgrade module, upgrade_path should be []string{"upgrade", + # "upgradedIBCState"}` + @property + def upgrade_path(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # This flag, when set to true, will allow governance to recover a client + # which has expired + allow_update_after_expiry: builtins.bool = ... + # This flag, when set to true, will allow governance to unfreeze a client + # whose chain has experienced a misbehaviour event + allow_update_after_misbehaviour: builtins.bool = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + trust_level : typing.Optional[global___Fraction] = ..., + trusting_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + unbonding_period : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_clock_drift : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + frozen_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + latest_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + proof_specs : typing.Optional[typing.Iterable[confio.proofs_pb2.ProofSpec]] = ..., + upgrade_path : typing.Optional[typing.Iterable[typing.Text]] = ..., + allow_update_after_expiry : builtins.bool = ..., + allow_update_after_misbehaviour : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"allow_update_after_expiry",b"allow_update_after_expiry",u"allow_update_after_misbehaviour",b"allow_update_after_misbehaviour",u"chain_id",b"chain_id",u"frozen_height",b"frozen_height",u"latest_height",b"latest_height",u"max_clock_drift",b"max_clock_drift",u"proof_specs",b"proof_specs",u"trust_level",b"trust_level",u"trusting_period",b"trusting_period",u"unbonding_period",b"unbonding_period",u"upgrade_path",b"upgrade_path"]) -> None: ... +global___ClientState = ClientState + +# ConsensusState defines the consensus state from Tendermint. +class ConsensusState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TIMESTAMP_FIELD_NUMBER: builtins.int + ROOT_FIELD_NUMBER: builtins.int + NEXT_VALIDATORS_HASH_FIELD_NUMBER: builtins.int + # timestamp that corresponds to the block height in which the ConsensusState + # was stored. + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # commitment root (i.e app hash) + @property + def root(self) -> ibc.core.commitment.v1.commitment_pb2.MerkleRoot: ... + next_validators_hash: builtins.bytes = ... + def __init__(self, + *, + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + root : typing.Optional[ibc.core.commitment.v1.commitment_pb2.MerkleRoot] = ..., + next_validators_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"root",b"root",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"next_validators_hash",b"next_validators_hash",u"root",b"root",u"timestamp",b"timestamp"]) -> None: ... +global___ConsensusState = ConsensusState + +# Misbehaviour is a wrapper over two conflicting Headers +# that implements Misbehaviour interface expected by ICS-02 +class Misbehaviour(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + HEADER_1_FIELD_NUMBER: builtins.int + HEADER_2_FIELD_NUMBER: builtins.int + client_id: typing.Text = ... + @property + def header_1(self) -> global___Header: ... + @property + def header_2(self) -> global___Header: ... + def __init__(self, + *, + client_id : typing.Text = ..., + header_1 : typing.Optional[global___Header] = ..., + header_2 : typing.Optional[global___Header] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header_1",b"header_1",u"header_2",b"header_2"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"client_id",b"client_id",u"header_1",b"header_1",u"header_2",b"header_2"]) -> None: ... +global___Misbehaviour = Misbehaviour + +# Header defines the Tendermint client consensus Header. +# It encapsulates all the information necessary to update from a trusted +# Tendermint ConsensusState. The inclusion of TrustedHeight and +# TrustedValidators allows this update to process correctly, so long as the +# ConsensusState for the TrustedHeight exists, this removes race conditions +# among relayers The SignedHeader and ValidatorSet are the new untrusted update +# fields for the client. The TrustedHeight is the height of a stored +# ConsensusState on the client that will be used to verify the new untrusted +# header. The Trusted ConsensusState must be within the unbonding period of +# current time in order to correctly verify, and the TrustedValidators must +# hash to TrustedConsensusState.NextValidatorsHash since that is the last +# trusted validator set at the TrustedHeight. +class Header(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SIGNED_HEADER_FIELD_NUMBER: builtins.int + VALIDATOR_SET_FIELD_NUMBER: builtins.int + TRUSTED_HEIGHT_FIELD_NUMBER: builtins.int + TRUSTED_VALIDATORS_FIELD_NUMBER: builtins.int + @property + def signed_header(self) -> tendermint.types.types_pb2.SignedHeader: ... + @property + def validator_set(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + @property + def trusted_height(self) -> ibc.core.client.v1.client_pb2.Height: ... + @property + def trusted_validators(self) -> tendermint.types.validator_pb2.ValidatorSet: ... + def __init__(self, + *, + signed_header : typing.Optional[tendermint.types.types_pb2.SignedHeader] = ..., + validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + trusted_height : typing.Optional[ibc.core.client.v1.client_pb2.Height] = ..., + trusted_validators : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"trusted_height",b"trusted_height",u"trusted_validators",b"trusted_validators",u"validator_set",b"validator_set"]) -> None: ... +global___Header = Header + +# Fraction defines the protobuf message type for tmmath.Fraction that only +# supports positive values. +class Fraction(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NUMERATOR_FIELD_NUMBER: builtins.int + DENOMINATOR_FIELD_NUMBER: builtins.int + numerator: builtins.int = ... + denominator: builtins.int = ... + def __init__(self, + *, + numerator : builtins.int = ..., + denominator : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"denominator",b"denominator",u"numerator",b"numerator"]) -> None: ... +global___Fraction = Fraction diff --git a/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi new file mode 100644 index 0000000..1e81e8c --- /dev/null +++ b/pyband/proto/ibc/lightclients/tendermint/v1/tendermint_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .tendermint_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/genesis_pb2.pyi b/pyband/proto/oracle/v1/genesis_pb2.pyi new file mode 100644 index 0000000..da09879 --- /dev/null +++ b/pyband/proto/oracle/v1/genesis_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.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# GenesisState defines the oracle module's genesis state. +class GenesisState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + DATA_SOURCES_FIELD_NUMBER: builtins.int + ORACLE_SCRIPTS_FIELD_NUMBER: builtins.int + # Params defines all the paramaters of the module. + @property + def params(self) -> oracle.v1.oracle_pb2.Params: ... + # DataSources are data sources to be installed during genesis phase + @property + def data_sources(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.DataSource]: ... + # OracleScripts are list of oracle scripts to be installed during genesis + # phase + @property + def oracle_scripts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.OracleScript]: ... + def __init__(self, + *, + params : typing.Optional[oracle.v1.oracle_pb2.Params] = ..., + data_sources : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.DataSource]] = ..., + oracle_scripts : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.OracleScript]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"params",b"params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_sources",b"data_sources",u"oracle_scripts",b"oracle_scripts",u"params",b"params"]) -> None: ... +global___GenesisState = GenesisState diff --git a/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi b/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi new file mode 100644 index 0000000..b5eede6 --- /dev/null +++ b/pyband/proto/oracle/v1/genesis_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .genesis_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/oracle_pb2.pyi b/pyband/proto/oracle/v1/oracle_pb2.pyi new file mode 100644 index 0000000..3805caf --- /dev/null +++ b/pyband/proto/oracle/v1/oracle_pb2.pyi @@ -0,0 +1,614 @@ +""" +@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.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ResolveStatus encodes the status of an oracle request. +class ResolveStatus(_ResolveStatus, metaclass=_ResolveStatusEnumTypeWrapper): + pass +class _ResolveStatus: + V = typing.NewType('V', builtins.int) +class _ResolveStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ResolveStatus.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Open - the request is not yet resolved. + RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) + # Success - the request has been resolved successfully with no errors. + RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) + # Failure - an error occured during the request's resolve call. + RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) + # Expired - the request does not get enough reports from validator within the + # timeframe. + RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) + +# Open - the request is not yet resolved. +RESOLVE_STATUS_OPEN_UNSPECIFIED = ResolveStatus.V(0) +# Success - the request has been resolved successfully with no errors. +RESOLVE_STATUS_SUCCESS = ResolveStatus.V(1) +# Failure - an error occured during the request's resolve call. +RESOLVE_STATUS_FAILURE = ResolveStatus.V(2) +# Expired - the request does not get enough reports from validator within the +# timeframe. +RESOLVE_STATUS_EXPIRED = ResolveStatus.V(3) +global___ResolveStatus = ResolveStatus + + +# DataSource is the data structure for storing data sources in the storage. +class DataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OWNER_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + FILENAME_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + # Owner is an address of the account who own the data source + owner: typing.Text = ... + # Name is data source name used for display + name: typing.Text = ... + # Description is data source description used for display + description: typing.Text = ... + # Filename is string of file name used as reference for locating + # data source file stored in bandchain nodes + filename: typing.Text = ... + # Treasury is the account address who receive data source fee from requester. + treasury: typing.Text = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + def __init__(self, + *, + owner : typing.Text = ..., + name : typing.Text = ..., + description : typing.Text = ..., + filename : typing.Text = ..., + treasury : typing.Text = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"fee",b"fee",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"treasury",b"treasury"]) -> None: ... +global___DataSource = DataSource + +# OracleScript is the data structure for storing oracle scripts in the storage. +class OracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + OWNER_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + FILENAME_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + # Owner is an address of the account who own the oracle script + owner: typing.Text = ... + # Name is oracle script name used for display + name: typing.Text = ... + # Description is oracle script description used for display + description: typing.Text = ... + # Filename is string of file name used as reference for locating + # compiled oracle script WASM file stored in bandchain nodes + filename: typing.Text = ... + # Schema is the schema of the oracle script input/output + # which is formatted in OBI format e.g. + # "{symbol:string,multiplier:u64}/{px:u64}" + schema: typing.Text = ... + # SourceCodeURL is the URL of oracle script's source code. + # It is recommendded to store source code on IPFS and get its URL to preserve + # decentralization. + source_code_url: typing.Text = ... + def __init__(self, + *, + owner : typing.Text = ..., + name : typing.Text = ..., + description : typing.Text = ..., + filename : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"filename",b"filename",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"source_code_url",b"source_code_url"]) -> None: ... +global___OracleScript = OracleScript + +# RawRequest is the data structure for storing raw requests in the storage. +class RawRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXTERNAL_ID_FIELD_NUMBER: builtins.int + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + # ExternalID is an ID of the raw request + external_id: builtins.int = ... + # DataSourceID is an ID of data source script that relates to the raw request + data_source_id: builtins.int = ... + # Calldata is the data used as argument params for executing data source + # script + calldata: builtins.bytes = ... + def __init__(self, + *, + external_id : builtins.int = ..., + data_source_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"data_source_id",b"data_source_id",u"external_id",b"external_id"]) -> None: ... +global___RawRequest = RawRequest + +# RawRequest is the data structure for storing raw reporter in the storage. +class RawReport(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + EXTERNAL_ID_FIELD_NUMBER: builtins.int + EXIT_CODE_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + # ExternalID is an ID of the raw request + external_id: builtins.int = ... + # ExitCode is status code provided by validators to specify error, if any. + # Exit code is usually filled by the exit code returned from execution of + # specified data source script. With code 0 means there is no error. + exit_code: builtins.int = ... + # Data is raw result provided by validators. + # It is usually filled by the result from execution of specified data source + # script. + data: builtins.bytes = ... + def __init__(self, + *, + external_id : builtins.int = ..., + exit_code : builtins.int = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"exit_code",b"exit_code",u"external_id",b"external_id"]) -> None: ... +global___RawReport = RawReport + +# Request is the data structure for storing requests in the storage. +class Request(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + REQUESTED_VALIDATORS_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + REQUEST_HEIGHT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + RAW_REQUESTS_FIELD_NUMBER: builtins.int + IBC_CHANNEL_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + # Calldata is the data used as argument params for the oracle script + calldata: builtins.bytes = ... + # RequestedValidators is a list of validator addresses that are assigned for + # fulfilling the request + @property + def requested_validators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # MinCount is minimum number of validators required for fulfilling the + # request + min_count: builtins.int = ... + # RequestHeight is block height that the request has been created + request_height: builtins.int = ... + # RequestTime is timestamp of the chain's block which contains the request + request_time: builtins.int = ... + # ClientID is arbitrary id provided by requester. + # It is used by client-side for referencing the request + client_id: typing.Text = ... + # RawRequests is a list of raw requests specified by execution of oracle + # script + @property + def raw_requests(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawRequest]: ... + # IBCChannel is an IBC channel info of the other chain, which contains a + # channel and a port to allow bandchain connect to that chain. This field + # allows other chain be able to request data from bandchain via IBC. + @property + def ibc_channel(self) -> global___IBCChannel: ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + requested_validators : typing.Optional[typing.Iterable[typing.Text]] = ..., + min_count : builtins.int = ..., + request_height : builtins.int = ..., + request_time : builtins.int = ..., + client_id : typing.Text = ..., + raw_requests : typing.Optional[typing.Iterable[global___RawRequest]] = ..., + ibc_channel : typing.Optional[global___IBCChannel] = ..., + execute_gas : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"ibc_channel",b"ibc_channel"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"ibc_channel",b"ibc_channel",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"raw_requests",b"raw_requests",u"request_height",b"request_height",u"request_time",b"request_time",u"requested_validators",b"requested_validators"]) -> None: ... +global___Request = Request + +# Report is the data structure for storing reports in the storage. +class Report(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + IN_BEFORE_RESOLVE_FIELD_NUMBER: builtins.int + RAW_REPORTS_FIELD_NUMBER: builtins.int + # Validator is a validator address who submit the report + validator: typing.Text = ... + # InBeforeResolve indicates whether the report is submitted before the + # request resolved + in_before_resolve: builtins.bool = ... + # RawReports is list of raw reports provided by the validator. + # Each raw report has different external ID + @property + def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___RawReport]: ... + def __init__(self, + *, + validator : typing.Text = ..., + in_before_resolve : builtins.bool = ..., + raw_reports : typing.Optional[typing.Iterable[global___RawReport]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"in_before_resolve",b"in_before_resolve",u"raw_reports",b"raw_reports",u"validator",b"validator"]) -> None: ... +global___Report = Report + +# OracleRequestPacketData encodes an oracle request sent from other blockchains +# to BandChain. +class OracleRequestPacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + FEE_LIMIT_FIELD_NUMBER: builtins.int + PREPARE_GAS_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier of this oracle request, as specified by + # the client. This same unique ID will be sent back to the requester with the + # oracle response. + client_id: typing.Text = ... + # OracleScriptID is the unique identifier of the oracle script to be + # executed. + oracle_script_id: builtins.int = ... + # Calldata is the OBI-encoded calldata bytes available for oracle executor to + # read. + calldata: builtins.bytes = ... + # AskCount is the number of validators that are requested to respond to this + # oracle request. Higher value means more security, at a higher gas cost. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators necessary for the request to + # proceed to the execution phase. Higher value means more security, at the + # cost of liveness. + min_count: builtins.int = ... + # FeeLimit is the maximum tokens that will be paid to all data source + # providers. + @property + def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # PrepareGas is amount of gas to pay to prepare raw requests + prepare_gas: builtins.int = ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + def __init__(self, + *, + client_id : typing.Text = ..., + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + prepare_gas : builtins.int = ..., + execute_gas : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas"]) -> None: ... +global___OracleRequestPacketData = OracleRequestPacketData + +# OracleRequestPacketAcknowledgement encodes an oracle request acknowledgement +# send back to requester chain. +class OracleRequestPacketAcknowledgement(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + def __init__(self, + *, + request_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... +global___OracleRequestPacketAcknowledgement = OracleRequestPacketAcknowledgement + +# OracleResponsePacketData encodes an oracle response from BandChain to the +# requester. +class OracleResponsePacketData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + ANS_COUNT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + RESOLVE_STATUS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier matched with that of the oracle request + # packet. + client_id: typing.Text = ... + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + # AnsCount is the number of validators among to the asked validators that + # actually responded to this oracle request prior to this oracle request + # being resolved. + ans_count: builtins.int = ... + # RequestTime is the UNIX epoch time at which the request was sent to + # BandChain. + request_time: builtins.int = ... + # ResolveTime is the UNIX epoch time at which the request was resolved to the + # final result. + resolve_time: builtins.int = ... + # ResolveStatus is the status of this oracle request, which can be OK, + # FAILURE, or EXPIRED. + resolve_status: global___ResolveStatus.V = ... + # Result is the final aggregated value encoded in OBI format. Only available + # if status if OK. + result: builtins.bytes = ... + def __init__(self, + *, + client_id : typing.Text = ..., + request_id : builtins.int = ..., + ans_count : builtins.int = ..., + request_time : builtins.int = ..., + resolve_time : builtins.int = ..., + resolve_status : global___ResolveStatus.V = ..., + result : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"client_id",b"client_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... +global___OracleResponsePacketData = OracleResponsePacketData + +# Result encodes a result of request and store in chain +class Result(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CLIENT_ID_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + ANS_COUNT_FIELD_NUMBER: builtins.int + REQUEST_TIME_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + RESOLVE_STATUS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # ClientID is the unique identifier of this oracle request, as specified by + # the client. This same unique ID will be sent back to the requester with the + # oracle response. + client_id: typing.Text = ... + # OracleScriptID is the unique identifier of the oracle script to be + # executed. + oracle_script_id: builtins.int = ... + # Calldata is the calldata bytes available for oracle executor to read. + calldata: builtins.bytes = ... + # AskCount is the number of validators that are requested to respond to this + # oracle request. Higher value means more security, at a higher gas cost. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators necessary for the request to + # proceed to the execution phase. Higher value means more security, at the + # cost of liveness. + min_count: builtins.int = ... + # RequestID is BandChain's unique identifier for this oracle request. + request_id: builtins.int = ... + # AnsCount is the number of validators among to the asked validators that + # actually responded to this oracle request prior to this oracle request + # being resolved. + ans_count: builtins.int = ... + # RequestTime is the UNIX epoch time at which the request was sent to + # BandChain. + request_time: builtins.int = ... + # ResolveTime is the UNIX epoch time at which the request was resolved to the + # final result. + resolve_time: builtins.int = ... + # ResolveStatus is the status of this oracle request, which can be OK, + # FAILURE, or EXPIRED. + resolve_status: global___ResolveStatus.V = ... + # Result is the final aggregated value only available if status if OK. + result: builtins.bytes = ... + def __init__(self, + *, + client_id : typing.Text = ..., + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + request_id : builtins.int = ..., + ans_count : builtins.int = ..., + request_time : builtins.int = ..., + resolve_time : builtins.int = ..., + resolve_status : global___ResolveStatus.V = ..., + result : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ans_count",b"ans_count",u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"request_id",b"request_id",u"request_time",b"request_time",u"resolve_status",b"resolve_status",u"resolve_time",b"resolve_time",u"result",b"result"]) -> None: ... +global___Result = Result + +# ValidatorStatus maintains whether a validator is an active oracle provider. +class ValidatorStatus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IS_ACTIVE_FIELD_NUMBER: builtins.int + SINCE_FIELD_NUMBER: builtins.int + # IsActive is a boolean indicating active status of validator. + # The validator will be deactivated when they are unable to send reports + # to fulfill oracle request before the request expired. + is_active: builtins.bool = ... + # Since is a block timestamp when validator has been activated/deactivated + @property + def since(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + def __init__(self, + *, + is_active : builtins.bool = ..., + since : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"since",b"since"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_active",b"is_active",u"since",b"since"]) -> None: ... +global___ValidatorStatus = ValidatorStatus + +# ActiveValidator is information of currently active validator +class ActiveValidator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # Address is a validator address + address: typing.Text = ... + # Power is an amount of token that the validator is holding + power: builtins.int = ... + def __init__(self, + *, + address : typing.Text = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___ActiveValidator = ActiveValidator + +# Params is the data structure that keeps the parameters of the oracle module. +class Params(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_RAW_REQUEST_COUNT_FIELD_NUMBER: builtins.int + MAX_ASK_COUNT_FIELD_NUMBER: builtins.int + MAX_CALLDATA_SIZE_FIELD_NUMBER: builtins.int + MAX_REPORT_DATA_SIZE_FIELD_NUMBER: builtins.int + EXPIRATION_BLOCK_COUNT_FIELD_NUMBER: builtins.int + BASE_OWASM_GAS_FIELD_NUMBER: builtins.int + PER_VALIDATOR_REQUEST_GAS_FIELD_NUMBER: builtins.int + SAMPLING_TRY_COUNT_FIELD_NUMBER: builtins.int + ORACLE_REWARD_PERCENTAGE_FIELD_NUMBER: builtins.int + INACTIVE_PENALTY_DURATION_FIELD_NUMBER: builtins.int + IBC_REQUEST_ENABLED_FIELD_NUMBER: builtins.int + # MaxRawRequestCount is the maximum number of data source raw requests a + # request can make. + max_raw_request_count: builtins.int = ... + # MaxAskCount is the maximum number of validators a request can target. + max_ask_count: builtins.int = ... + # MaxCalldataSize is the maximum size limit of calldata (bytes) in a request. + max_calldata_size: builtins.int = ... + # MaxReportDataSize is the maximum size limit of report data (bytes) in a + # report. + max_report_data_size: builtins.int = ... + # ExpirationBlockCount is the number of blocks a request stays valid before + # it gets expired due to insufficient reports. + expiration_block_count: builtins.int = ... + # BaseOwasmGas is the base amount of Cosmos-SDK gas charged for owasm + # execution. + base_owasm_gas: builtins.int = ... + # PerValidatorRequestGas is the amount of Cosmos-SDK gas charged per + # requested validator. + per_validator_request_gas: builtins.int = ... + # SamplingTryCount the number of validator sampling tries to pick the highest + # voting power subset of validators to perform an oracle task. + sampling_try_count: builtins.int = ... + # OracleRewardPercentage is the percentage of block rewards allocated to + # active oracle validators. + oracle_reward_percentage: builtins.int = ... + # InactivePenaltyDuration is the duration period where a validator cannot + # activate back after missing an oracle report. + inactive_penalty_duration: builtins.int = ... + # IBCRequestEnabled is a flag indicating whether sending oracle request via + # IBC is allowed + ibc_request_enabled: builtins.bool = ... + def __init__(self, + *, + max_raw_request_count : builtins.int = ..., + max_ask_count : builtins.int = ..., + max_calldata_size : builtins.int = ..., + max_report_data_size : builtins.int = ..., + expiration_block_count : builtins.int = ..., + base_owasm_gas : builtins.int = ..., + per_validator_request_gas : builtins.int = ..., + sampling_try_count : builtins.int = ..., + oracle_reward_percentage : builtins.int = ..., + inactive_penalty_duration : builtins.int = ..., + ibc_request_enabled : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"base_owasm_gas",b"base_owasm_gas",u"expiration_block_count",b"expiration_block_count",u"ibc_request_enabled",b"ibc_request_enabled",u"inactive_penalty_duration",b"inactive_penalty_duration",u"max_ask_count",b"max_ask_count",u"max_calldata_size",b"max_calldata_size",u"max_raw_request_count",b"max_raw_request_count",u"max_report_data_size",b"max_report_data_size",u"oracle_reward_percentage",b"oracle_reward_percentage",u"per_validator_request_gas",b"per_validator_request_gas",u"sampling_try_count",b"sampling_try_count"]) -> None: ... +global___Params = Params + +# PendingResolveList is a list of requests that are waiting to be resolved +class PendingResolveList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_IDS_FIELD_NUMBER: builtins.int + # RequestIDs is a list of request IDs that are waiting to be resolved + @property + def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... +global___PendingResolveList = PendingResolveList + +# IBCChannel is information of IBC protocol to allow communicating with other +# chain +class IBCChannel(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PORT_ID_FIELD_NUMBER: builtins.int + CHANNEL_ID_FIELD_NUMBER: builtins.int + # PortID is port ID used for sending response packet when request is + # resolved. + port_id: typing.Text = ... + # ChannelID is channel ID used for sending response packet when request is + # resolved. + channel_id: typing.Text = ... + def __init__(self, + *, + port_id : typing.Text = ..., + channel_id : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channel_id",b"channel_id",u"port_id",b"port_id"]) -> None: ... +global___IBCChannel = IBCChannel + +# RequestVerification is a message that is constructed and signed by a reporter +# to be used as a part of verification of oracle request. +class RequestVerification(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + # ChainID is the ID of targeted chain + chain_id: typing.Text = ... + # Validator is an validator address + validator: typing.Text = ... + # RequestID is the targeted request ID + request_id: builtins.int = ... + # ExternalID is the oracle's external ID of data source + external_id: builtins.int = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___RequestVerification = RequestVerification + +# PriceResult is a result from standard price reference +class PriceResult(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SYMBOL_FIELD_NUMBER: builtins.int + MULTIPLIER_FIELD_NUMBER: builtins.int + PX_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + RESOLVE_TIME_FIELD_NUMBER: builtins.int + # Symbol is unit of data indicating what the data is. It is price currencies + # for this case. + symbol: typing.Text = ... + # Multiplier is a number used for left-shifting value to eliminate decimal + # digits + multiplier: builtins.int = ... + # Px is the actual data, which is rate number multiplied by the multiplier. + px: builtins.int = ... + # RequestID is oracle request ID that contains this price + request_id: builtins.int = ... + # ResolveTime is epoch timestamp indicating the time when the request had + # been resolved + resolve_time: builtins.int = ... + def __init__(self, + *, + symbol : typing.Text = ..., + multiplier : builtins.int = ..., + px : builtins.int = ..., + request_id : builtins.int = ..., + resolve_time : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"multiplier",b"multiplier",u"px",b"px",u"request_id",b"request_id",u"resolve_time",b"resolve_time",u"symbol",b"symbol"]) -> None: ... +global___PriceResult = PriceResult diff --git a/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi b/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi new file mode 100644 index 0000000..1306f22 --- /dev/null +++ b/pyband/proto/oracle/v1/oracle_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .oracle_pb2 import * \ No newline at end of file diff --git a/pyband/proto/oracle/v1/query_pb2.pyi b/pyband/proto/oracle/v1/query_pb2.pyi new file mode 100644 index 0000000..1a75efb --- /dev/null +++ b/pyband/proto/oracle/v1/query_pb2.pyi @@ -0,0 +1,473 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# QueryCountsRequest is request type for the Query/Count RPC method. +class QueryCountsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryCountsRequest = QueryCountsRequest + +# QueryCountsResponse is response type for the Query/Count RPC method. +class QueryCountsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_COUNT_FIELD_NUMBER: builtins.int + ORACLE_SCRIPT_COUNT_FIELD_NUMBER: builtins.int + REQUEST_COUNT_FIELD_NUMBER: builtins.int + # DataSourceCount is total number of data sources available on the chain + data_source_count: builtins.int = ... + # OracleScriptCount is total number of oracle scripts available on the chain + oracle_script_count: builtins.int = ... + # RequestCount is total number of requests submitted to the chain + request_count: builtins.int = ... + def __init__(self, + *, + data_source_count : builtins.int = ..., + oracle_script_count : builtins.int = ..., + request_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_count",b"data_source_count",u"oracle_script_count",b"oracle_script_count",u"request_count",b"request_count"]) -> None: ... +global___QueryCountsResponse = QueryCountsResponse + +# QueryDataRequest is request type for the Query/Data RPC method. +class QueryDataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_HASH_FIELD_NUMBER: builtins.int + # DataHash is SHA256 hash of the file's content, which can be data source or + # oracle script + data_hash: typing.Text = ... + def __init__(self, + *, + data_hash : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_hash",b"data_hash"]) -> None: ... +global___QueryDataRequest = QueryDataRequest + +# QueryDataResponse is response type for the Query/Data RPC method. +class QueryDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + # Data is file's content, which can be data source or oracle script + data: builtins.bytes = ... + def __init__(self, + *, + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data"]) -> None: ... +global___QueryDataResponse = QueryDataResponse + +# QueryDataSourceRequest is request type for the Query/DataSource RPC method. +class QueryDataSourceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + # DataSourceID is ID of a data source script + data_source_id: builtins.int = ... + def __init__(self, + *, + data_source_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id"]) -> None: ... +global___QueryDataSourceRequest = QueryDataSourceRequest + +# QueryDataSourceResponse is response type for the Query/DataSource RPC method. +class QueryDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_FIELD_NUMBER: builtins.int + # DataSource is summary information of a data source + @property + def data_source(self) -> oracle.v1.oracle_pb2.DataSource: ... + def __init__(self, + *, + data_source : typing.Optional[oracle.v1.oracle_pb2.DataSource] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source",b"data_source"]) -> None: ... +global___QueryDataSourceResponse = QueryDataSourceResponse + +# QueryOracleScriptRequest is request type for the Query/OracleScript RPC +# method. +class QueryOracleScriptRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script_id",b"oracle_script_id"]) -> None: ... +global___QueryOracleScriptRequest = QueryOracleScriptRequest + +# QueryOracleScriptResponse is response type for the Query/OracleScript RPC +# method. +class QueryOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_FIELD_NUMBER: builtins.int + # OracleScript is summary information of an oracle script + @property + def oracle_script(self) -> oracle.v1.oracle_pb2.OracleScript: ... + def __init__(self, + *, + oracle_script : typing.Optional[oracle.v1.oracle_pb2.OracleScript] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"oracle_script",b"oracle_script"]) -> None: ... +global___QueryOracleScriptResponse = QueryOracleScriptResponse + +# QueryRequestRequest is request type for the Query/Request RPC method. +class QueryRequestRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + # RequestID is ID of an oracle request + request_id: builtins.int = ... + def __init__(self, + *, + request_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_id",b"request_id"]) -> None: ... +global___QueryRequestRequest = QueryRequestRequest + +# QueryRequestResponse is response type for the Query/Request RPC method. +class QueryRequestResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_FIELD_NUMBER: builtins.int + REPORTS_FIELD_NUMBER: builtins.int + RESULT_FIELD_NUMBER: builtins.int + # Request is an oracle request + @property + def request(self) -> oracle.v1.oracle_pb2.Request: ... + # Reports is list of result data as raw reports that are fulfilled by + # assigned validators + @property + def reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.Report]: ... + # Result is a final form of result data + @property + def result(self) -> oracle.v1.oracle_pb2.Result: ... + def __init__(self, + *, + request : typing.Optional[oracle.v1.oracle_pb2.Request] = ..., + reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.Report]] = ..., + result : typing.Optional[oracle.v1.oracle_pb2.Result] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"request",b"request",u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reports",b"reports",u"request",b"request",u"result",b"result"]) -> None: ... +global___QueryRequestResponse = QueryRequestResponse + +# QueryPendingRequestRequest is request type for the Query/PendingRequests RPC +# method. +class QueryPendingRequestsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is address of a validator + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryPendingRequestsRequest = QueryPendingRequestsRequest + +# QueryPendingRequestResponse is response type for the Query/PendingRequests +# RPC method. +class QueryPendingRequestsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_IDS_FIELD_NUMBER: builtins.int + # RequestIDs is a list of pending request IDs assigned to the given validator + @property + def request_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + def __init__(self, + *, + request_ids : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request_ids",b"request_ids"]) -> None: ... +global___QueryPendingRequestsResponse = QueryPendingRequestsResponse + +# QueryParamsRequest is 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 response type for the Query/Params RPC method. +class QueryParamsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PARAMS_FIELD_NUMBER: builtins.int + # pagination defines an optional pagination for the request. + @property + def params(self) -> oracle.v1.oracle_pb2.Params: ... + def __init__(self, + *, + params : typing.Optional[oracle.v1.oracle_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 + +# QueryValidatorRequest is request type for the Query/Validator RPC method. +class QueryValidatorRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is address of a validator + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryValidatorRequest = QueryValidatorRequest + +# QueryValidatorResponse is response type for the Query/Validator RPC method. +class QueryValidatorResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + STATUS_FIELD_NUMBER: builtins.int + # Status is status of a validator e.g. active/inactive + @property + def status(self) -> oracle.v1.oracle_pb2.ValidatorStatus: ... + def __init__(self, + *, + status : typing.Optional[oracle.v1.oracle_pb2.ValidatorStatus] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"status",b"status"]) -> None: ... +global___QueryValidatorResponse = QueryValidatorResponse + +# QueryIsReporterRequest is request type for the Query/Reporter RPC method. +class QueryIsReporterRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + REPORTER_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is a validator address + validator_address: typing.Text = ... + # ReporterAddress is a candidate account + reporter_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + reporter_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reporter_address",b"reporter_address",u"validator_address",b"validator_address"]) -> None: ... +global___QueryIsReporterRequest = QueryIsReporterRequest + +# QueryIsReporterResponse is response type for the Query/Reporter RPC method. +class QueryIsReporterResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + IS_REPORTER_FIELD_NUMBER: builtins.int + # IsReporter is true if this account has been granted by validator + is_reporter: builtins.bool = ... + def __init__(self, + *, + is_reporter : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"is_reporter",b"is_reporter"]) -> None: ... +global___QueryIsReporterResponse = QueryIsReporterResponse + +# QueryReportersRequest is request type for the Query/Reporters RPC method. +class QueryReportersRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_ADDRESS_FIELD_NUMBER: builtins.int + # ValidatorAddress is a validator address + validator_address: typing.Text = ... + def __init__(self, + *, + validator_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator_address",b"validator_address"]) -> None: ... +global___QueryReportersRequest = QueryReportersRequest + +# QueryReportersResponse is response type for the Query/Reporters RPC method. +class QueryReportersResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REPORTER_FIELD_NUMBER: builtins.int + # Reporter is a list of account addresses of reporters + @property + def reporter(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + reporter : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"reporter",b"reporter"]) -> None: ... +global___QueryReportersResponse = QueryReportersResponse + +# QueryActiveValidatorsRequest is request type for the Query/ActiveValidators +# RPC method. +class QueryActiveValidatorsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___QueryActiveValidatorsRequest = QueryActiveValidatorsRequest + +# QueryActiveValidatorsResponse is response type for the Query/ActiveValidators +# RPC method. +class QueryActiveValidatorsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATORS_FIELD_NUMBER: builtins.int + # Validators is a list of active validators + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.ActiveValidator]: ... + def __init__(self, + *, + validators : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.ActiveValidator]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validators",b"validators"]) -> None: ... +global___QueryActiveValidatorsResponse = QueryActiveValidatorsResponse + +# QueryRequestSearchRequest is request type for the Query/RequestSearch RPC +# method. +class QueryRequestSearchRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + # OracleScriptID is ID of an oracle script + oracle_script_id: builtins.int = ... + # Calldata is OBI-encoded data in hex format as argument params for the + # oracle script + calldata: typing.Text = ... + # AskCount is number of validators allowed for fulfilling the request + ask_count: builtins.int = ... + # MinCount is number of validators required for fulfilling the request + min_count: builtins.int = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : typing.Text = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id"]) -> None: ... +global___QueryRequestSearchRequest = QueryRequestSearchRequest + +# QueryRequestSearchResponse is response type for the Query/RequestSearch RPC +# method. +class QueryRequestSearchResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_FIELD_NUMBER: builtins.int + # Request is details of an oracle request + @property + def request(self) -> global___QueryRequestResponse: ... + def __init__(self, + *, + request : typing.Optional[global___QueryRequestResponse] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"request",b"request"]) -> None: ... +global___QueryRequestSearchResponse = QueryRequestSearchResponse + +# QueryRequestPriceRequest is request type for the Query/RequestPrice RPC +# method. +class QueryRequestPriceRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SYMBOLS_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + # Symbol is unit of data indicating what the data is + @property + def symbols(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + # AskCount is number of validators allowed for fulfilling the request + ask_count: builtins.int = ... + # MinCount is number of validators required for fulfilling the request + min_count: builtins.int = ... + def __init__(self, + *, + symbols : typing.Optional[typing.Iterable[typing.Text]] = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"min_count",b"min_count",u"symbols",b"symbols"]) -> None: ... +global___QueryRequestPriceRequest = QueryRequestPriceRequest + +# QueryRequestPriceResponse is response type for the Query/RequestPrice RPC +# method. +class QueryRequestPriceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PRICE_RESULTS_FIELD_NUMBER: builtins.int + # PriceResult is a list of price results for given symbols + @property + def price_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.PriceResult]: ... + def __init__(self, + *, + price_results : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.PriceResult]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"price_results",b"price_results"]) -> None: ... +global___QueryRequestPriceResponse = QueryRequestPriceResponse + +# QueryRequestVerificationRequest is request type for the +# Query/RequestVerification RPC +class QueryRequestVerificationRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + REPORTER_FIELD_NUMBER: builtins.int + SIGNATURE_FIELD_NUMBER: builtins.int + # ChainID is the chain ID to identify which chain ID is used for the + # verification + chain_id: typing.Text = ... + # Validator is a validator address + validator: typing.Text = ... + # RequestID is oracle request ID + request_id: builtins.int = ... + # ExternalID is an oracle's external ID + external_id: builtins.int = ... + # Reporter is an bech32-encoded public key of the reporter authorized by the + # validator + reporter: typing.Text = ... + # Signature is a signature signed by the reporter using reporter's private + # key + signature: builtins.bytes = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + reporter : typing.Text = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"external_id",b"external_id",u"reporter",b"reporter",u"request_id",b"request_id",u"signature",b"signature",u"validator",b"validator"]) -> None: ... +global___QueryRequestVerificationRequest = QueryRequestVerificationRequest + +# QueryRequestVerificationResponse is response type for the +# Query/RequestVerification RPC +class QueryRequestVerificationResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CHAIN_ID_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + REQUEST_ID_FIELD_NUMBER: builtins.int + EXTERNAL_ID_FIELD_NUMBER: builtins.int + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + # ChainID is the targeted chain ID + chain_id: typing.Text = ... + # Validator is the targeted validator address + validator: typing.Text = ... + # RequestID is the ID of targeted request + request_id: builtins.int = ... + # ExternalID is the ID of targeted oracle's external data source + external_id: builtins.int = ... + # DataSourceID is the ID of a data source that relates to the targeted + # external ID + data_source_id: builtins.int = ... + def __init__(self, + *, + chain_id : typing.Text = ..., + validator : typing.Text = ..., + request_id : builtins.int = ..., + external_id : builtins.int = ..., + data_source_id : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chain_id",b"chain_id",u"data_source_id",b"data_source_id",u"external_id",b"external_id",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___QueryRequestVerificationResponse = QueryRequestVerificationResponse diff --git a/pyband/proto/oracle/v1/query_pb2_grpc.pyi b/pyband/proto/oracle/v1/query_pb2_grpc.pyi new file mode 100644 index 0000000..288f2fc --- /dev/null +++ b/pyband/proto/oracle/v1/query_pb2_grpc.pyi @@ -0,0 +1,194 @@ +""" +@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: ... + # Counts queries the number of existing data sources, oracle scripts, and + # requests. + Counts:grpc.UnaryUnaryMultiCallable[ + global___QueryCountsRequest, + global___QueryCountsResponse] = ... + + # Data queries content of the data source or oracle script for given SHA256 + # file hash. + Data:grpc.UnaryUnaryMultiCallable[ + global___QueryDataRequest, + global___QueryDataResponse] = ... + + # DataSource queries data source summary info for given data source id. + DataSource:grpc.UnaryUnaryMultiCallable[ + global___QueryDataSourceRequest, + global___QueryDataSourceResponse] = ... + + # OracleScript queries oracle script summary info for given oracle script id. + OracleScript:grpc.UnaryUnaryMultiCallable[ + global___QueryOracleScriptRequest, + global___QueryOracleScriptResponse] = ... + + # Request queries request info for given request id. + Request:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestRequest, + global___QueryRequestResponse] = ... + + # PendingRequests queries list of pending request IDs assigned to given + # validator. + PendingRequests:grpc.UnaryUnaryMultiCallable[ + global___QueryPendingRequestsRequest, + global___QueryPendingRequestsResponse] = ... + + # Validator queries properties of given validator address. + Validator:grpc.UnaryUnaryMultiCallable[ + global___QueryValidatorRequest, + global___QueryValidatorResponse] = ... + + # IsReporter queries grant of account on this validator. + IsReporter:grpc.UnaryUnaryMultiCallable[ + global___QueryIsReporterRequest, + global___QueryIsReporterResponse] = ... + + # Reporters queries all reporters associated with given validator address. + Reporters:grpc.UnaryUnaryMultiCallable[ + global___QueryReportersRequest, + global___QueryReportersResponse] = ... + + # ActiveValidators queries all active oracle validators. + ActiveValidators:grpc.UnaryUnaryMultiCallable[ + global___QueryActiveValidatorsRequest, + global___QueryActiveValidatorsResponse] = ... + + # Params queries parameters used for runnning bandchain network. + Params:grpc.UnaryUnaryMultiCallable[ + global___QueryParamsRequest, + global___QueryParamsResponse] = ... + + # RequestSearch queries the latest request that match search criteria. + RequestSearch:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestSearchRequest, + global___QueryRequestSearchResponse] = ... + + # RequestPrice queries the latest price on standard price reference oracle + # script. + RequestPrice:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestPriceRequest, + global___QueryRequestPriceResponse] = ... + + # RequestVerification verifies a request to make sure that + # all information that will be used to report the data is valid + RequestVerification:grpc.UnaryUnaryMultiCallable[ + global___QueryRequestVerificationRequest, + global___QueryRequestVerificationResponse] = ... + + +# Query defines the gRPC querier service. +class QueryServicer(metaclass=abc.ABCMeta): + # Counts queries the number of existing data sources, oracle scripts, and + # requests. + @abc.abstractmethod + def Counts(self, + request: global___QueryCountsRequest, + context: grpc.ServicerContext, + ) -> global___QueryCountsResponse: ... + + # Data queries content of the data source or oracle script for given SHA256 + # file hash. + @abc.abstractmethod + def Data(self, + request: global___QueryDataRequest, + context: grpc.ServicerContext, + ) -> global___QueryDataResponse: ... + + # DataSource queries data source summary info for given data source id. + @abc.abstractmethod + def DataSource(self, + request: global___QueryDataSourceRequest, + context: grpc.ServicerContext, + ) -> global___QueryDataSourceResponse: ... + + # OracleScript queries oracle script summary info for given oracle script id. + @abc.abstractmethod + def OracleScript(self, + request: global___QueryOracleScriptRequest, + context: grpc.ServicerContext, + ) -> global___QueryOracleScriptResponse: ... + + # Request queries request info for given request id. + @abc.abstractmethod + def Request(self, + request: global___QueryRequestRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestResponse: ... + + # PendingRequests queries list of pending request IDs assigned to given + # validator. + @abc.abstractmethod + def PendingRequests(self, + request: global___QueryPendingRequestsRequest, + context: grpc.ServicerContext, + ) -> global___QueryPendingRequestsResponse: ... + + # Validator queries properties of given validator address. + @abc.abstractmethod + def Validator(self, + request: global___QueryValidatorRequest, + context: grpc.ServicerContext, + ) -> global___QueryValidatorResponse: ... + + # IsReporter queries grant of account on this validator. + @abc.abstractmethod + def IsReporter(self, + request: global___QueryIsReporterRequest, + context: grpc.ServicerContext, + ) -> global___QueryIsReporterResponse: ... + + # Reporters queries all reporters associated with given validator address. + @abc.abstractmethod + def Reporters(self, + request: global___QueryReportersRequest, + context: grpc.ServicerContext, + ) -> global___QueryReportersResponse: ... + + # ActiveValidators queries all active oracle validators. + @abc.abstractmethod + def ActiveValidators(self, + request: global___QueryActiveValidatorsRequest, + context: grpc.ServicerContext, + ) -> global___QueryActiveValidatorsResponse: ... + + # Params queries parameters used for runnning bandchain network. + @abc.abstractmethod + def Params(self, + request: global___QueryParamsRequest, + context: grpc.ServicerContext, + ) -> global___QueryParamsResponse: ... + + # RequestSearch queries the latest request that match search criteria. + @abc.abstractmethod + def RequestSearch(self, + request: global___QueryRequestSearchRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestSearchResponse: ... + + # RequestPrice queries the latest price on standard price reference oracle + # script. + @abc.abstractmethod + def RequestPrice(self, + request: global___QueryRequestPriceRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestPriceResponse: ... + + # RequestVerification verifies a request to make sure that + # all information that will be used to report the data is valid + @abc.abstractmethod + def RequestVerification(self, + request: global___QueryRequestVerificationRequest, + context: grpc.ServicerContext, + ) -> global___QueryRequestVerificationResponse: ... + + +def add_QueryServicer_to_server(servicer: QueryServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/oracle/v1/tx_pb2.pyi b/pyband/proto/oracle/v1/tx_pb2.pyi new file mode 100644 index 0000000..acf29de --- /dev/null +++ b/pyband/proto/oracle/v1/tx_pb2.pyi @@ -0,0 +1,323 @@ +""" +@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.internal.containers +import google.protobuf.message +import oracle.v1.oracle_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# MsgRequestData is a message for sending a data oracle request. +class MsgRequestData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + CALLDATA_FIELD_NUMBER: builtins.int + ASK_COUNT_FIELD_NUMBER: builtins.int + MIN_COUNT_FIELD_NUMBER: builtins.int + CLIENT_ID_FIELD_NUMBER: builtins.int + FEE_LIMIT_FIELD_NUMBER: builtins.int + PREPARE_GAS_FIELD_NUMBER: builtins.int + EXECUTE_GAS_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # OracleScriptID is the identifier of the oracle script to be called. + oracle_script_id: builtins.int = ... + # Calldata is the OBI-encoded call parameters for the oracle script. + calldata: builtins.bytes = ... + # AskCount is the number of validators to perform the oracle task. + ask_count: builtins.int = ... + # MinCount is the minimum number of validators sufficient to resolve the + # oracle tasks. + min_count: builtins.int = ... + # ClientID is the client-provided unique identifier to track the request. + client_id: typing.Text = ... + # FeeLimit is the maximum tokens that will be paid to all data source + # providers. + @property + def fee_limit(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # PrepareGas is amount of gas to pay to prepare raw requests + prepare_gas: builtins.int = ... + # ExecuteGas is amount of gas to reserve for executing + execute_gas: builtins.int = ... + # Sender is an account address of message sender. + sender: typing.Text = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + calldata : builtins.bytes = ..., + ask_count : builtins.int = ..., + min_count : builtins.int = ..., + client_id : typing.Text = ..., + fee_limit : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + prepare_gas : builtins.int = ..., + execute_gas : builtins.int = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ask_count",b"ask_count",u"calldata",b"calldata",u"client_id",b"client_id",u"execute_gas",b"execute_gas",u"fee_limit",b"fee_limit",u"min_count",b"min_count",u"oracle_script_id",b"oracle_script_id",u"prepare_gas",b"prepare_gas",u"sender",b"sender"]) -> None: ... +global___MsgRequestData = MsgRequestData + +# MsgRequestDataResponse is response data for MsgRequestData message +class MsgRequestDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgRequestDataResponse = MsgRequestDataResponse + +# MsgReportData is a message for reporting to a data request by a validator. +class MsgReportData(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + REQUEST_ID_FIELD_NUMBER: builtins.int + RAW_REPORTS_FIELD_NUMBER: builtins.int + VALIDATOR_FIELD_NUMBER: builtins.int + # RequestID is the identifier of the request to be reported to. + request_id: builtins.int = ... + # RawReports is the list of report information provided by data sources + # identified by external ID + @property + def raw_reports(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[oracle.v1.oracle_pb2.RawReport]: ... + # Validator is the address of the validator that owns this report. + validator: typing.Text = ... + def __init__(self, + *, + request_id : builtins.int = ..., + raw_reports : typing.Optional[typing.Iterable[oracle.v1.oracle_pb2.RawReport]] = ..., + validator : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"raw_reports",b"raw_reports",u"request_id",b"request_id",u"validator",b"validator"]) -> None: ... +global___MsgReportData = MsgReportData + +# MsgReportDataResponse is response data for MsgReportData message +class MsgReportDataResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgReportDataResponse = MsgReportDataResponse + +# MsgCreateDataSource is a message for creating a new data source. +class MsgCreateDataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + EXECUTABLE_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # Name is the name of this data source used for display (optional). + name: typing.Text = ... + # Description is the description of this data source used for display + # (optional). + description: typing.Text = ... + # Executable is the content of executable script or binary file to be run by + # validators upon execution. + executable: builtins.bytes = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Treasury is the account address who receive data source fee from requester. + treasury: typing.Text = ... + # Owner is the account address who is allowed to make further changes to the + # data source. + owner: typing.Text = ... + # Sender is the signer of this message. + sender: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + description : typing.Text = ..., + executable : builtins.bytes = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + treasury : typing.Text = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... +global___MsgCreateDataSource = MsgCreateDataSource + +# MsgCreateDataSourceResponse is response data for MsgCreateDataSource message +class MsgCreateDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateDataSourceResponse = MsgCreateDataSourceResponse + +# MsgEditDataSource is a message for editing an existing data source. +class MsgEditDataSource(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_SOURCE_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + EXECUTABLE_FIELD_NUMBER: builtins.int + FEE_FIELD_NUMBER: builtins.int + TREASURY_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # DataSourceID is the unique identifier of the data source to be edited. + data_source_id: builtins.int = ... + # Name is the name of this data source used for display (optional). + name: typing.Text = ... + # Description is the description of this data source used for display + # (optional). + description: typing.Text = ... + # Executable is the executable script or binary to be run by validators upon + # execution. + executable: builtins.bytes = ... + # Fee is the data source fee per ask_count that data provider will receive + # from requester. + @property + def fee(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[cosmos.base.v1beta1.coin_pb2.Coin]: ... + # Treasury is the address who receive data source fee from requester. + treasury: typing.Text = ... + # Owner is the address who is allowed to make further changes to the data + # source. + owner: typing.Text = ... + # Sender is the signer of this message. Must be the current data source's + # owner. + sender: typing.Text = ... + def __init__(self, + *, + data_source_id : builtins.int = ..., + name : typing.Text = ..., + description : typing.Text = ..., + executable : builtins.bytes = ..., + fee : typing.Optional[typing.Iterable[cosmos.base.v1beta1.coin_pb2.Coin]] = ..., + treasury : typing.Text = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data_source_id",b"data_source_id",u"description",b"description",u"executable",b"executable",u"fee",b"fee",u"name",b"name",u"owner",b"owner",u"sender",b"sender",u"treasury",b"treasury"]) -> None: ... +global___MsgEditDataSource = MsgEditDataSource + +# MsgEditDataSourceResponse is response data for MsgEditDataSource message +class MsgEditDataSourceResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditDataSourceResponse = MsgEditDataSourceResponse + +# MsgCreateOracleScript is a message for creating an oracle script. +class MsgCreateOracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # Name is the name of this oracle script used for display (optional). + name: typing.Text = ... + # Description is the description of this oracle script used for display + # (optional). + description: typing.Text = ... + # Schema is the OBI schema of this oracle script (optional). + schema: typing.Text = ... + # SourceCodeURL is the absolute URI to the script's source code (optional). + source_code_url: typing.Text = ... + # Code is the oracle WebAssembly binary code. Can be raw of gzip compressed. + code: builtins.bytes = ... + # Owner is the address who is allowed to make further changes to the oracle + # script. + owner: typing.Text = ... + # Sender is the signer of this message. + sender: typing.Text = ... + def __init__(self, + *, + name : typing.Text = ..., + description : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + code : builtins.bytes = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... +global___MsgCreateOracleScript = MsgCreateOracleScript + +# MsgCreateOracleScriptResponse is response data for MsgCreateOracleScript +# message +class MsgCreateOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgCreateOracleScriptResponse = MsgCreateOracleScriptResponse + +# MsgEditOracleScript is a message for editing an existing oracle script. +class MsgEditOracleScript(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ORACLE_SCRIPT_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + DESCRIPTION_FIELD_NUMBER: builtins.int + SCHEMA_FIELD_NUMBER: builtins.int + SOURCE_CODE_URL_FIELD_NUMBER: builtins.int + CODE_FIELD_NUMBER: builtins.int + OWNER_FIELD_NUMBER: builtins.int + SENDER_FIELD_NUMBER: builtins.int + # OracleScriptID is the unique identifier of the oracle script to be edited. + oracle_script_id: builtins.int = ... + # Name is the name of this oracle script used for display (optional). + name: typing.Text = ... + # Description is the description of this oracle script used for display + # (optional). + description: typing.Text = ... + # Schema is the OBI schema of this oracle script (optional). + schema: typing.Text = ... + # SourceCodeURL is the absolute URI to the script's source code (optional). + source_code_url: typing.Text = ... + # Code is the oracle WebAssembly binary code. Can be raw of gzip compressed. + code: builtins.bytes = ... + # Owner is an account address who is allowed to make further changes to the + # oracle script. + owner: typing.Text = ... + # Sender is an account address who sign this message. Must be the current + # oracle script's owner. + sender: typing.Text = ... + def __init__(self, + *, + oracle_script_id : builtins.int = ..., + name : typing.Text = ..., + description : typing.Text = ..., + schema : typing.Text = ..., + source_code_url : typing.Text = ..., + code : builtins.bytes = ..., + owner : typing.Text = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"description",b"description",u"name",b"name",u"oracle_script_id",b"oracle_script_id",u"owner",b"owner",u"schema",b"schema",u"sender",b"sender",u"source_code_url",b"source_code_url"]) -> None: ... +global___MsgEditOracleScript = MsgEditOracleScript + +# MsgEditOracleScriptResponse is response data for MsgEditOracleScript message +class MsgEditOracleScriptResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgEditOracleScriptResponse = MsgEditOracleScriptResponse + +# MsgEditOracleScript is a message for activating a validator to become an +# oracle provider. However, the activation can be revoked once the validator +# is unable to provide data to fulfill requests +class MsgActivate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + VALIDATOR_FIELD_NUMBER: builtins.int + # Validator is the validator address who sign this message and request to be + # activated. + validator: typing.Text = ... + def __init__(self, + *, + validator : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> None: ... +global___MsgActivate = MsgActivate + +# MsgActivateResponse is response data for MsgActivate message +class MsgActivateResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___MsgActivateResponse = MsgActivateResponse diff --git a/pyband/proto/oracle/v1/tx_pb2_grpc.pyi b/pyband/proto/oracle/v1/tx_pb2_grpc.pyi new file mode 100644 index 0000000..c39ed74 --- /dev/null +++ b/pyband/proto/oracle/v1/tx_pb2_grpc.pyi @@ -0,0 +1,100 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .tx_pb2 import * +# Msg defines the oracle Msg service. +class MsgStub: + def __init__(self, channel: grpc.Channel) -> None: ... + # RequestData defines a method for submitting a new request. + RequestData:grpc.UnaryUnaryMultiCallable[ + global___MsgRequestData, + global___MsgRequestDataResponse] = ... + + # ReportData defines a method for reporting a data to resolve the request. + ReportData:grpc.UnaryUnaryMultiCallable[ + global___MsgReportData, + global___MsgReportDataResponse] = ... + + # CreateDataSource defines a method for creating a new data source. + CreateDataSource:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateDataSource, + global___MsgCreateDataSourceResponse] = ... + + # EditDataSource defines a method for editing an existing data source. + EditDataSource:grpc.UnaryUnaryMultiCallable[ + global___MsgEditDataSource, + global___MsgEditDataSourceResponse] = ... + + # CreateOracleScript defines a method for creating a new oracle script. + CreateOracleScript:grpc.UnaryUnaryMultiCallable[ + global___MsgCreateOracleScript, + global___MsgCreateOracleScriptResponse] = ... + + # EditOracleScript defines a method for editing an existing oracle script. + EditOracleScript:grpc.UnaryUnaryMultiCallable[ + global___MsgEditOracleScript, + global___MsgEditOracleScriptResponse] = ... + + # Activate defines a method for applying to be an oracle validator. + Activate:grpc.UnaryUnaryMultiCallable[ + global___MsgActivate, + global___MsgActivateResponse] = ... + + +# Msg defines the oracle Msg service. +class MsgServicer(metaclass=abc.ABCMeta): + # RequestData defines a method for submitting a new request. + @abc.abstractmethod + def RequestData(self, + request: global___MsgRequestData, + context: grpc.ServicerContext, + ) -> global___MsgRequestDataResponse: ... + + # ReportData defines a method for reporting a data to resolve the request. + @abc.abstractmethod + def ReportData(self, + request: global___MsgReportData, + context: grpc.ServicerContext, + ) -> global___MsgReportDataResponse: ... + + # CreateDataSource defines a method for creating a new data source. + @abc.abstractmethod + def CreateDataSource(self, + request: global___MsgCreateDataSource, + context: grpc.ServicerContext, + ) -> global___MsgCreateDataSourceResponse: ... + + # EditDataSource defines a method for editing an existing data source. + @abc.abstractmethod + def EditDataSource(self, + request: global___MsgEditDataSource, + context: grpc.ServicerContext, + ) -> global___MsgEditDataSourceResponse: ... + + # CreateOracleScript defines a method for creating a new oracle script. + @abc.abstractmethod + def CreateOracleScript(self, + request: global___MsgCreateOracleScript, + context: grpc.ServicerContext, + ) -> global___MsgCreateOracleScriptResponse: ... + + # EditOracleScript defines a method for editing an existing oracle script. + @abc.abstractmethod + def EditOracleScript(self, + request: global___MsgEditOracleScript, + context: grpc.ServicerContext, + ) -> global___MsgEditOracleScriptResponse: ... + + # Activate defines a method for applying to be an oracle validator. + @abc.abstractmethod + def Activate(self, + request: global___MsgActivate, + context: grpc.ServicerContext, + ) -> global___MsgActivateResponse: ... + + +def add_MsgServicer_to_server(servicer: MsgServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/abci/types_pb2.pyi b/pyband/proto/tendermint/abci/types_pb2.pyi new file mode 100644 index 0000000..922a12c --- /dev/null +++ b/pyband/proto/tendermint/abci/types_pb2.pyi @@ -0,0 +1,1039 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 tendermint.crypto.keys_pb2 +import tendermint.crypto.proof_pb2 +import tendermint.types.params_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +class CheckTxType(_CheckTxType, metaclass=_CheckTxTypeEnumTypeWrapper): + pass +class _CheckTxType: + V = typing.NewType('V', builtins.int) +class _CheckTxTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_CheckTxType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + NEW = CheckTxType.V(0) + RECHECK = CheckTxType.V(1) + +NEW = CheckTxType.V(0) +RECHECK = CheckTxType.V(1) +global___CheckTxType = CheckTxType + + +class EvidenceType(_EvidenceType, metaclass=_EvidenceTypeEnumTypeWrapper): + pass +class _EvidenceType: + V = typing.NewType('V', builtins.int) +class _EvidenceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EvidenceType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + UNKNOWN = EvidenceType.V(0) + DUPLICATE_VOTE = EvidenceType.V(1) + LIGHT_CLIENT_ATTACK = EvidenceType.V(2) + +UNKNOWN = EvidenceType.V(0) +DUPLICATE_VOTE = EvidenceType.V(1) +LIGHT_CLIENT_ATTACK = EvidenceType.V(2) +global___EvidenceType = EvidenceType + + +# This file is copied from http://github.com/tendermint/abci +# NOTE: When using custom types, mind the warnings. +# https://github.com/gogo/protobuf/blob/master/custom_types.md#warnings-and-issues + +#---------------------------------------- +# Request types + +class Request(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ECHO_FIELD_NUMBER: builtins.int + FLUSH_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + SET_OPTION_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 + @property + def echo(self) -> global___RequestEcho: ... + @property + def flush(self) -> global___RequestFlush: ... + @property + def info(self) -> global___RequestInfo: ... + @property + def set_option(self) -> global___RequestSetOption: ... + @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: ... + def __init__(self, + *, + echo : typing.Optional[global___RequestEcho] = ..., + flush : typing.Optional[global___RequestFlush] = ..., + info : typing.Optional[global___RequestInfo] = ..., + set_option : typing.Optional[global___RequestSetOption] = ..., + init_chain : typing.Optional[global___RequestInitChain] = ..., + query : typing.Optional[global___RequestQuery] = ..., + begin_block : typing.Optional[global___RequestBeginBlock] = ..., + check_tx : typing.Optional[global___RequestCheckTx] = ..., + deliver_tx : typing.Optional[global___RequestDeliverTx] = ..., + end_block : typing.Optional[global___RequestEndBlock] = ..., + commit : typing.Optional[global___RequestCommit] = ..., + list_snapshots : typing.Optional[global___RequestListSnapshots] = ..., + offer_snapshot : typing.Optional[global___RequestOfferSnapshot] = ..., + load_snapshot_chunk : typing.Optional[global___RequestLoadSnapshotChunk] = ..., + apply_snapshot_chunk : typing.Optional[global___RequestApplySnapshotChunk] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... +global___Request = Request + +class RequestEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGE_FIELD_NUMBER: builtins.int + message: typing.Text = ... + def __init__(self, + *, + message : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... +global___RequestEcho = RequestEcho + +class RequestFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestFlush = RequestFlush + +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 + version: typing.Text = ... + block_version: builtins.int = ... + p2p_version: builtins.int = ... + def __init__(self, + *, + version : typing.Text = ..., + block_version : builtins.int = ..., + p2p_version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_version",b"block_version",u"p2p_version",b"p2p_version",u"version",b"version"]) -> None: ... +global___RequestInfo = RequestInfo + +# nondeterministic +class RequestSetOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: typing.Text = ... + value: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + value : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"value",b"value"]) -> None: ... +global___RequestSetOption = RequestSetOption + +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: typing.Text = ... + @property + def consensus_params(self) -> global___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 : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + chain_id : typing.Text = ..., + consensus_params : typing.Optional[global___ConsensusParams] = ..., + validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + app_state_bytes : builtins.bytes = ..., + initial_height : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params",u"time",b"time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_state_bytes",b"app_state_bytes",u"chain_id",b"chain_id",u"consensus_params",b"consensus_params",u"initial_height",b"initial_height",u"time",b"time",u"validators",b"validators"]) -> None: ... +global___RequestInitChain = RequestInitChain + +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: typing.Text = ... + height: builtins.int = ... + prove: builtins.bool = ... + def __init__(self, + *, + data : builtins.bytes = ..., + path : typing.Text = ..., + height : builtins.int = ..., + prove : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"height",b"height",u"path",b"path",u"prove",b"prove"]) -> None: ... +global___RequestQuery = RequestQuery + +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___LastCommitInfo: ... + @property + def byzantine_validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Evidence]: ... + def __init__(self, + *, + hash : builtins.bytes = ..., + header : typing.Optional[tendermint.types.types_pb2.Header] = ..., + last_commit_info : typing.Optional[global___LastCommitInfo] = ..., + byzantine_validators : typing.Optional[typing.Iterable[global___Evidence]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"hash",b"hash",u"header",b"header",u"last_commit_info",b"last_commit_info"]) -> None: ... +global___RequestBeginBlock = RequestBeginBlock + +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.V = ... + def __init__(self, + *, + tx : builtins.bytes = ..., + type : global___CheckTxType.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"tx",b"tx",u"type",b"type"]) -> None: ... +global___RequestCheckTx = RequestCheckTx + +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[u"tx",b"tx"]) -> None: ... +global___RequestDeliverTx = RequestDeliverTx + +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[u"height",b"height"]) -> None: ... +global___RequestEndBlock = RequestEndBlock + +class RequestCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestCommit = RequestCommit + +# lists available snapshots +class RequestListSnapshots(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___RequestListSnapshots = RequestListSnapshots + +# offers a snapshot to the application +class RequestOfferSnapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + SNAPSHOT_FIELD_NUMBER: builtins.int + APP_HASH_FIELD_NUMBER: builtins.int + # snapshot offered by peers + @property + def snapshot(self) -> global___Snapshot: ... + # light client-verified app hash for snapshot height + app_hash: builtins.bytes = ... + def __init__(self, + *, + snapshot : typing.Optional[global___Snapshot] = ..., + app_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"snapshot",b"snapshot"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"snapshot",b"snapshot"]) -> None: ... +global___RequestOfferSnapshot = RequestOfferSnapshot + +# loads a snapshot chunk +class RequestLoadSnapshotChunk(google.protobuf.message.Message): + 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[u"chunk",b"chunk",u"format",b"format",u"height",b"height"]) -> None: ... +global___RequestLoadSnapshotChunk = RequestLoadSnapshotChunk + +# Applies a snapshot chunk +class RequestApplySnapshotChunk(google.protobuf.message.Message): + 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: typing.Text = ... + def __init__(self, + *, + index : builtins.int = ..., + chunk : builtins.bytes = ..., + sender : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"chunk",b"chunk",u"index",b"index",u"sender",b"sender"]) -> None: ... +global___RequestApplySnapshotChunk = RequestApplySnapshotChunk + +#---------------------------------------- +# Response types + +class Response(google.protobuf.message.Message): + 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 + SET_OPTION_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 + @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 set_option(self) -> global___ResponseSetOption: ... + @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: ... + def __init__(self, + *, + exception : typing.Optional[global___ResponseException] = ..., + echo : typing.Optional[global___ResponseEcho] = ..., + flush : typing.Optional[global___ResponseFlush] = ..., + info : typing.Optional[global___ResponseInfo] = ..., + set_option : typing.Optional[global___ResponseSetOption] = ..., + init_chain : typing.Optional[global___ResponseInitChain] = ..., + query : typing.Optional[global___ResponseQuery] = ..., + begin_block : typing.Optional[global___ResponseBeginBlock] = ..., + check_tx : typing.Optional[global___ResponseCheckTx] = ..., + deliver_tx : typing.Optional[global___ResponseDeliverTx] = ..., + end_block : typing.Optional[global___ResponseEndBlock] = ..., + commit : typing.Optional[global___ResponseCommit] = ..., + list_snapshots : typing.Optional[global___ResponseListSnapshots] = ..., + offer_snapshot : typing.Optional[global___ResponseOfferSnapshot] = ..., + load_snapshot_chunk : typing.Optional[global___ResponseLoadSnapshotChunk] = ..., + apply_snapshot_chunk : typing.Optional[global___ResponseApplySnapshotChunk] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"apply_snapshot_chunk",b"apply_snapshot_chunk",u"begin_block",b"begin_block",u"check_tx",b"check_tx",u"commit",b"commit",u"deliver_tx",b"deliver_tx",u"echo",b"echo",u"end_block",b"end_block",u"exception",b"exception",u"flush",b"flush",u"info",b"info",u"init_chain",b"init_chain",u"list_snapshots",b"list_snapshots",u"load_snapshot_chunk",b"load_snapshot_chunk",u"offer_snapshot",b"offer_snapshot",u"query",b"query",u"set_option",b"set_option",u"value",b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"value",b"value"]) -> typing.Optional[typing_extensions.Literal["exception","echo","flush","info","set_option","init_chain","query","begin_block","check_tx","deliver_tx","end_block","commit","list_snapshots","offer_snapshot","load_snapshot_chunk","apply_snapshot_chunk"]]: ... +global___Response = Response + +# nondeterministic +class ResponseException(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ERROR_FIELD_NUMBER: builtins.int + error: typing.Text = ... + def __init__(self, + *, + error : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"error",b"error"]) -> None: ... +global___ResponseException = ResponseException + +class ResponseEcho(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MESSAGE_FIELD_NUMBER: builtins.int + message: typing.Text = ... + def __init__(self, + *, + message : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"message",b"message"]) -> None: ... +global___ResponseEcho = ResponseEcho + +class ResponseFlush(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + def __init__(self, + ) -> None: ... +global___ResponseFlush = ResponseFlush + +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: typing.Text = ... + version: typing.Text = ... + app_version: builtins.int = ... + last_block_height: builtins.int = ... + last_block_app_hash: builtins.bytes = ... + def __init__(self, + *, + data : typing.Text = ..., + version : typing.Text = ..., + app_version : builtins.int = ..., + last_block_height : builtins.int = ..., + last_block_app_hash : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version",u"data",b"data",u"last_block_app_hash",b"last_block_app_hash",u"last_block_height",b"last_block_height",u"version",b"version"]) -> None: ... +global___ResponseInfo = ResponseInfo + +# nondeterministic +class ResponseSetOption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + CODE_FIELD_NUMBER: builtins.int + LOG_FIELD_NUMBER: builtins.int + INFO_FIELD_NUMBER: builtins.int + code: builtins.int = ... + # bytes data = 2; + log: typing.Text = ... + info: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + log : typing.Text = ..., + info : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseSetOption = ResponseSetOption + +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) -> global___ConsensusParams: ... + @property + def validators(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ValidatorUpdate]: ... + app_hash: builtins.bytes = ... + def __init__(self, + *, + consensus_params : typing.Optional[global___ConsensusParams] = ..., + validators : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + app_hash : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_params",b"consensus_params"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"consensus_params",b"consensus_params",u"validators",b"validators"]) -> None: ... +global___ResponseInitChain = ResponseInitChain + +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 = ... + # bytes data = 2; // use "value" instead. + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + index: builtins.int = ... + key: builtins.bytes = ... + value: builtins.bytes = ... + @property + def proof_ops(self) -> tendermint.crypto.proof_pb2.ProofOps: ... + height: builtins.int = ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + log : typing.Text = ..., + info : typing.Text = ..., + index : builtins.int = ..., + key : builtins.bytes = ..., + value : builtins.bytes = ..., + proof_ops : typing.Optional[tendermint.crypto.proof_pb2.ProofOps] = ..., + height : builtins.int = ..., + codespace : typing.Text = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof_ops",b"proof_ops"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"height",b"height",u"index",b"index",u"info",b"info",u"key",b"key",u"log",b"log",u"proof_ops",b"proof_ops",u"value",b"value"]) -> None: ... +global___ResponseQuery = ResponseQuery + +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 : typing.Optional[typing.Iterable[global___Event]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"events",b"events"]) -> None: ... +global___ResponseBeginBlock = ResponseBeginBlock + +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 + code: builtins.int = ... + data: builtins.bytes = ... + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + gas_wanted: builtins.int = ... + gas_used: builtins.int = ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + data : builtins.bytes = ..., + log : typing.Text = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + codespace : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseCheckTx = ResponseCheckTx + +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 = ... + # nondeterministic + log: typing.Text = ... + # nondeterministic + info: typing.Text = ... + gas_wanted: builtins.int = ... + gas_used: builtins.int = ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + codespace: typing.Text = ... + def __init__(self, + *, + code : builtins.int = ..., + data : builtins.bytes = ..., + log : typing.Text = ..., + info : typing.Text = ..., + gas_wanted : builtins.int = ..., + gas_used : builtins.int = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + codespace : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"code",b"code",u"codespace",b"codespace",u"data",b"data",u"events",b"events",u"gas_used",b"gas_used",u"gas_wanted",b"gas_wanted",u"info",b"info",u"log",b"log"]) -> None: ... +global___ResponseDeliverTx = ResponseDeliverTx + +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) -> global___ConsensusParams: ... + @property + def events(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Event]: ... + def __init__(self, + *, + validator_updates : typing.Optional[typing.Iterable[global___ValidatorUpdate]] = ..., + consensus_param_updates : typing.Optional[global___ConsensusParams] = ..., + events : typing.Optional[typing.Iterable[global___Event]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"consensus_param_updates",b"consensus_param_updates",u"events",b"events",u"validator_updates",b"validator_updates"]) -> None: ... +global___ResponseEndBlock = ResponseEndBlock + +class ResponseCommit(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + DATA_FIELD_NUMBER: builtins.int + RETAIN_HEIGHT_FIELD_NUMBER: builtins.int + # reserve 1 + data: builtins.bytes = ... + retain_height: builtins.int = ... + def __init__(self, + *, + data : builtins.bytes = ..., + retain_height : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"retain_height",b"retain_height"]) -> None: ... +global___ResponseCommit = ResponseCommit + +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 : typing.Optional[typing.Iterable[global___Snapshot]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"snapshots",b"snapshots"]) -> None: ... +global___ResponseListSnapshots = ResponseListSnapshots + +class ResponseOfferSnapshot(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Result(_Result, metaclass=_ResultEnumTypeWrapper): + pass + class _Result: + V = typing.NewType('V', builtins.int) + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Result.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseOfferSnapshot.Result.V(0) + # Snapshot accepted, apply chunks + ACCEPT = ResponseOfferSnapshot.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseOfferSnapshot.Result.V(2) + # Reject this specific snapshot, try others + REJECT = ResponseOfferSnapshot.Result.V(3) + # Reject all snapshots of this format, try others + REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) + # Reject all snapshots from the sender(s), try others + REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) + + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseOfferSnapshot.Result.V(0) + # Snapshot accepted, apply chunks + ACCEPT = ResponseOfferSnapshot.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseOfferSnapshot.Result.V(2) + # Reject this specific snapshot, try others + REJECT = ResponseOfferSnapshot.Result.V(3) + # Reject all snapshots of this format, try others + REJECT_FORMAT = ResponseOfferSnapshot.Result.V(4) + # Reject all snapshots from the sender(s), try others + REJECT_SENDER = ResponseOfferSnapshot.Result.V(5) + + RESULT_FIELD_NUMBER: builtins.int + result: global___ResponseOfferSnapshot.Result.V = ... + def __init__(self, + *, + result : global___ResponseOfferSnapshot.Result.V = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> None: ... +global___ResponseOfferSnapshot = ResponseOfferSnapshot + +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[u"chunk",b"chunk"]) -> None: ... +global___ResponseLoadSnapshotChunk = ResponseLoadSnapshotChunk + +class ResponseApplySnapshotChunk(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + class Result(_Result, metaclass=_ResultEnumTypeWrapper): + pass + class _Result: + V = typing.NewType('V', builtins.int) + class _ResultEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_Result.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) + # Chunk successfully accepted + ACCEPT = ResponseApplySnapshotChunk.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseApplySnapshotChunk.Result.V(2) + # Retry chunk (combine with refetch and reject) + RETRY = ResponseApplySnapshotChunk.Result.V(3) + # Retry snapshot (combine with refetch and reject) + RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) + # Reject this snapshot, try others + REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) + + # Unknown result, abort all snapshot restoration + UNKNOWN = ResponseApplySnapshotChunk.Result.V(0) + # Chunk successfully accepted + ACCEPT = ResponseApplySnapshotChunk.Result.V(1) + # Abort all snapshot restoration + ABORT = ResponseApplySnapshotChunk.Result.V(2) + # Retry chunk (combine with refetch and reject) + RETRY = ResponseApplySnapshotChunk.Result.V(3) + # Retry snapshot (combine with refetch and reject) + RETRY_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(4) + # Reject this snapshot, try others + REJECT_SNAPSHOT = ResponseApplySnapshotChunk.Result.V(5) + + RESULT_FIELD_NUMBER: builtins.int + REFETCH_CHUNKS_FIELD_NUMBER: builtins.int + REJECT_SENDERS_FIELD_NUMBER: builtins.int + result: global___ResponseApplySnapshotChunk.Result.V = ... + # Chunks to refetch and reapply + @property + def refetch_chunks(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]: ... + # Chunk senders to reject and ban + @property + def reject_senders(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + result : global___ResponseApplySnapshotChunk.Result.V = ..., + refetch_chunks : typing.Optional[typing.Iterable[builtins.int]] = ..., + reject_senders : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"refetch_chunks",b"refetch_chunks",u"reject_senders",b"reject_senders",u"result",b"result"]) -> None: ... +global___ResponseApplySnapshotChunk = ResponseApplySnapshotChunk + +#---------------------------------------- +# Misc. + +# ConsensusParams contains all consensus-relevant parameters +# that can be adjusted by the abci app +class ConsensusParams(google.protobuf.message.Message): + 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) -> tendermint.types.params_pb2.EvidenceParams: ... + @property + def validator(self) -> tendermint.types.params_pb2.ValidatorParams: ... + @property + def version(self) -> tendermint.types.params_pb2.VersionParams: ... + def __init__(self, + *, + block : typing.Optional[global___BlockParams] = ..., + evidence : typing.Optional[tendermint.types.params_pb2.EvidenceParams] = ..., + validator : typing.Optional[tendermint.types.params_pb2.ValidatorParams] = ..., + version : typing.Optional[tendermint.types.params_pb2.VersionParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... +global___ConsensusParams = ConsensusParams + +# BlockParams contains limits on the block size. +class BlockParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_BYTES_FIELD_NUMBER: builtins.int + MAX_GAS_FIELD_NUMBER: builtins.int + # Note: must be greater than 0 + max_bytes: builtins.int = ... + # Note: must be greater or equal to -1 + max_gas: builtins.int = ... + def __init__(self, + *, + max_bytes : builtins.int = ..., + max_gas : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas"]) -> None: ... +global___BlockParams = BlockParams + +class LastCommitInfo(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___VoteInfo]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"round",b"round",u"votes",b"votes"]) -> None: ... +global___LastCommitInfo = LastCommitInfo + +# Event allows application developers to attach additional information to +# ResponseBeginBlock, ResponseEndBlock, ResponseCheckTx and ResponseDeliverTx. +# Later, transactions may be queried using these events. +class Event(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + ATTRIBUTES_FIELD_NUMBER: builtins.int + type: typing.Text = ... + @property + def attributes(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EventAttribute]: ... + def __init__(self, + *, + type : typing.Text = ..., + attributes : typing.Optional[typing.Iterable[global___EventAttribute]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"attributes",b"attributes",u"type",b"type"]) -> None: ... +global___Event = Event + +# EventAttribute is a single key-value pair, associated with an event. +class EventAttribute(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + INDEX_FIELD_NUMBER: builtins.int + key: builtins.bytes = ... + value: builtins.bytes = ... + # nondeterministic + index: builtins.bool = ... + def __init__(self, + *, + key : builtins.bytes = ..., + value : builtins.bytes = ..., + index : builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"index",b"index",u"key",b"key",u"value",b"value"]) -> None: ... +global___EventAttribute = EventAttribute + +# TxResult contains results of executing the transaction. +# +# One usage is indexing transaction results. +class TxResult(google.protobuf.message.Message): + 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 : typing.Optional[global___ResponseDeliverTx] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"result",b"result"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"index",b"index",u"result",b"result",u"tx",b"tx"]) -> None: ... +global___TxResult = TxResult + +#---------------------------------------- +# Blockchain Types + +# Validator +class Validator(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + ADDRESS_FIELD_NUMBER: builtins.int + POWER_FIELD_NUMBER: builtins.int + # The first 20 bytes of SHA256(public key) + address: builtins.bytes = ... + # PubKey pub_key = 2 [(gogoproto.nullable)=false]; + # The voting power + power: builtins.int = ... + def __init__(self, + *, + address : builtins.bytes = ..., + power : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"address",b"address",u"power",b"power"]) -> None: ... +global___Validator = Validator + +# ValidatorUpdate +class ValidatorUpdate(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + power : 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"power",b"power",u"pub_key",b"pub_key"]) -> None: ... +global___ValidatorUpdate = ValidatorUpdate + +# VoteInfo +class VoteInfo(google.protobuf.message.Message): + 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 : typing.Optional[global___Validator] = ..., + signed_last_block : builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_last_block",b"signed_last_block",u"validator",b"validator"]) -> None: ... +global___VoteInfo = VoteInfo + +class Evidence(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___EvidenceType.V = ... + # The offending validator + @property + def validator(self) -> global___Validator: ... + # The height when the offense occurred + height: builtins.int = ... + # The corresponding time where the offense occurred + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # Total voting power of the validator set in case the ABCI application does + # not store historical validators. + # https://github.com/tendermint/tendermint/issues/4581 + total_voting_power: builtins.int = ... + def __init__(self, + *, + type : global___EvidenceType.V = ..., + validator : typing.Optional[global___Validator] = ..., + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + total_voting_power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"time",b"time",u"validator",b"validator"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"height",b"height",u"time",b"time",u"total_voting_power",b"total_voting_power",u"type",b"type",u"validator",b"validator"]) -> None: ... +global___Evidence = Evidence + +#---------------------------------------- +# State Sync Types + +class Snapshot(google.protobuf.message.Message): + 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 + # The height at which the snapshot was taken + height: builtins.int = ... + # The application-specific snapshot format + format: builtins.int = ... + # Number of chunks in the snapshot + chunks: builtins.int = ... + # Arbitrary snapshot hash, equal only if identical + hash: builtins.bytes = ... + # Arbitrary application metadata + metadata: builtins.bytes = ... + 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[u"chunks",b"chunks",u"format",b"format",u"hash",b"hash",u"height",b"height",u"metadata",b"metadata"]) -> None: ... +global___Snapshot = Snapshot diff --git a/pyband/proto/tendermint/abci/types_pb2_grpc.pyi b/pyband/proto/tendermint/abci/types_pb2_grpc.pyi new file mode 100644 index 0000000..0e48ee2 --- /dev/null +++ b/pyband/proto/tendermint/abci/types_pb2_grpc.pyi @@ -0,0 +1,170 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import abc +import grpc + +from .types_pb2 import * +#---------------------------------------- +# Service Definition + +class ABCIApplicationStub: + def __init__(self, channel: grpc.Channel) -> None: ... + Echo:grpc.UnaryUnaryMultiCallable[ + global___RequestEcho, + global___ResponseEcho] = ... + + Flush:grpc.UnaryUnaryMultiCallable[ + global___RequestFlush, + global___ResponseFlush] = ... + + Info:grpc.UnaryUnaryMultiCallable[ + global___RequestInfo, + global___ResponseInfo] = ... + + SetOption:grpc.UnaryUnaryMultiCallable[ + global___RequestSetOption, + global___ResponseSetOption] = ... + + DeliverTx:grpc.UnaryUnaryMultiCallable[ + global___RequestDeliverTx, + global___ResponseDeliverTx] = ... + + CheckTx:grpc.UnaryUnaryMultiCallable[ + global___RequestCheckTx, + global___ResponseCheckTx] = ... + + Query:grpc.UnaryUnaryMultiCallable[ + global___RequestQuery, + global___ResponseQuery] = ... + + Commit:grpc.UnaryUnaryMultiCallable[ + global___RequestCommit, + global___ResponseCommit] = ... + + InitChain:grpc.UnaryUnaryMultiCallable[ + global___RequestInitChain, + global___ResponseInitChain] = ... + + BeginBlock:grpc.UnaryUnaryMultiCallable[ + global___RequestBeginBlock, + global___ResponseBeginBlock] = ... + + EndBlock:grpc.UnaryUnaryMultiCallable[ + global___RequestEndBlock, + global___ResponseEndBlock] = ... + + ListSnapshots:grpc.UnaryUnaryMultiCallable[ + global___RequestListSnapshots, + global___ResponseListSnapshots] = ... + + OfferSnapshot:grpc.UnaryUnaryMultiCallable[ + global___RequestOfferSnapshot, + global___ResponseOfferSnapshot] = ... + + LoadSnapshotChunk:grpc.UnaryUnaryMultiCallable[ + global___RequestLoadSnapshotChunk, + global___ResponseLoadSnapshotChunk] = ... + + ApplySnapshotChunk:grpc.UnaryUnaryMultiCallable[ + global___RequestApplySnapshotChunk, + global___ResponseApplySnapshotChunk] = ... + + +#---------------------------------------- +# Service Definition + +class ABCIApplicationServicer(metaclass=abc.ABCMeta): + @abc.abstractmethod + def Echo(self, + request: global___RequestEcho, + context: grpc.ServicerContext, + ) -> global___ResponseEcho: ... + + @abc.abstractmethod + def Flush(self, + request: global___RequestFlush, + context: grpc.ServicerContext, + ) -> global___ResponseFlush: ... + + @abc.abstractmethod + def Info(self, + request: global___RequestInfo, + context: grpc.ServicerContext, + ) -> global___ResponseInfo: ... + + @abc.abstractmethod + def SetOption(self, + request: global___RequestSetOption, + context: grpc.ServicerContext, + ) -> global___ResponseSetOption: ... + + @abc.abstractmethod + def DeliverTx(self, + request: global___RequestDeliverTx, + context: grpc.ServicerContext, + ) -> global___ResponseDeliverTx: ... + + @abc.abstractmethod + def CheckTx(self, + request: global___RequestCheckTx, + context: grpc.ServicerContext, + ) -> global___ResponseCheckTx: ... + + @abc.abstractmethod + def Query(self, + request: global___RequestQuery, + context: grpc.ServicerContext, + ) -> global___ResponseQuery: ... + + @abc.abstractmethod + def Commit(self, + request: global___RequestCommit, + context: grpc.ServicerContext, + ) -> global___ResponseCommit: ... + + @abc.abstractmethod + def InitChain(self, + request: global___RequestInitChain, + context: grpc.ServicerContext, + ) -> global___ResponseInitChain: ... + + @abc.abstractmethod + def BeginBlock(self, + request: global___RequestBeginBlock, + context: grpc.ServicerContext, + ) -> global___ResponseBeginBlock: ... + + @abc.abstractmethod + def EndBlock(self, + request: global___RequestEndBlock, + context: grpc.ServicerContext, + ) -> global___ResponseEndBlock: ... + + @abc.abstractmethod + def ListSnapshots(self, + request: global___RequestListSnapshots, + context: grpc.ServicerContext, + ) -> global___ResponseListSnapshots: ... + + @abc.abstractmethod + def OfferSnapshot(self, + request: global___RequestOfferSnapshot, + context: grpc.ServicerContext, + ) -> global___ResponseOfferSnapshot: ... + + @abc.abstractmethod + def LoadSnapshotChunk(self, + request: global___RequestLoadSnapshotChunk, + context: grpc.ServicerContext, + ) -> global___ResponseLoadSnapshotChunk: ... + + @abc.abstractmethod + def ApplySnapshotChunk(self, + request: global___RequestApplySnapshotChunk, + context: grpc.ServicerContext, + ) -> global___ResponseApplySnapshotChunk: ... + + +def add_ABCIApplicationServicer_to_server(servicer: ABCIApplicationServicer, server: grpc.Server) -> None: ... diff --git a/pyband/proto/tendermint/crypto/keys_pb2.pyi b/pyband/proto/tendermint/crypto/keys_pb2.pyi new file mode 100644 index 0000000..1216a50 --- /dev/null +++ b/pyband/proto/tendermint/crypto/keys_pb2.pyi @@ -0,0 +1,28 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# PublicKey defines the keys available for use with Tendermint Validators +class PublicKey(google.protobuf.message.Message): + 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[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ed25519",b"ed25519",u"secp256k1",b"secp256k1",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["ed25519","secp256k1"]]: ... +global___PublicKey = PublicKey diff --git a/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi new file mode 100644 index 0000000..10c7047 --- /dev/null +++ b/pyband/proto/tendermint/crypto/keys_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .keys_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/crypto/proof_pb2.pyi b/pyband/proto/tendermint/crypto/proof_pb2.pyi new file mode 100644 index 0000000..db5ab20 --- /dev/null +++ b/pyband/proto/tendermint/crypto/proof_pb2.pyi @@ -0,0 +1,101 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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 : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"aunts",b"aunts",u"index",b"index",u"leaf_hash",b"leaf_hash",u"total",b"total"]) -> None: ... +global___Proof = Proof + +class ValueOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + KEY_FIELD_NUMBER: builtins.int + PROOF_FIELD_NUMBER: builtins.int + # Encoded in ProofOp.Key. + key: builtins.bytes = ... + # To encode in ProofOp.Data + @property + def proof(self) -> global___Proof: ... + def __init__(self, + *, + key : builtins.bytes = ..., + proof : typing.Optional[global___Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"key",b"key",u"proof",b"proof"]) -> None: ... +global___ValueOp = ValueOp + +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: typing.Text = ... + input: typing.Text = ... + output: typing.Text = ... + def __init__(self, + *, + key : typing.Text = ..., + input : typing.Text = ..., + output : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"input",b"input",u"key",b"key",u"output",b"output"]) -> None: ... +global___DominoOp = DominoOp + +# ProofOp defines an operation used for calculating Merkle root +# The data could be arbitrary format, providing nessecary data +# for example neighbouring node hash +class ProofOp(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TYPE_FIELD_NUMBER: builtins.int + KEY_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + type: typing.Text = ... + key: builtins.bytes = ... + data: builtins.bytes = ... + def __init__(self, + *, + type : typing.Text = ..., + key : builtins.bytes = ..., + data : builtins.bytes = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"key",b"key",u"type",b"type"]) -> None: ... +global___ProofOp = ProofOp + +# ProofOps is Merkle proof defined by the list of ProofOps +class ProofOps(google.protobuf.message.Message): + 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 : typing.Optional[typing.Iterable[global___ProofOp]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"ops",b"ops"]) -> None: ... +global___ProofOps = ProofOps diff --git a/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi b/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi new file mode 100644 index 0000000..abce8b9 --- /dev/null +++ b/pyband/proto/tendermint/crypto/proof_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .proof_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/libs/bits/types_pb2.pyi b/pyband/proto/tendermint/libs/bits/types_pb2.pyi new file mode 100644 index 0000000..cbd1c84 --- /dev/null +++ b/pyband/proto/tendermint/libs/bits/types_pb2.pyi @@ -0,0 +1,27 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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 : typing.Optional[typing.Iterable[builtins.int]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bits",b"bits",u"elems",b"elems"]) -> None: ... +global___BitArray = BitArray diff --git a/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi b/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/libs/bits/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/p2p/types_pb2.pyi b/pyband/proto/tendermint/p2p/types_pb2.pyi new file mode 100644 index 0000000..37c3cb8 --- /dev/null +++ b/pyband/proto/tendermint/p2p/types_pb2.pyi @@ -0,0 +1,94 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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: typing.Text = ... + ip: typing.Text = ... + port: builtins.int = ... + def __init__(self, + *, + id : typing.Text = ..., + ip : typing.Text = ..., + port : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"id",b"id",u"ip",b"ip",u"port",b"port"]) -> None: ... +global___NetAddress = NetAddress + +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[u"app",b"app",u"block",b"block",u"p2p",b"p2p"]) -> None: ... +global___ProtocolVersion = ProtocolVersion + +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: typing.Text = ... + listen_addr: typing.Text = ... + network: typing.Text = ... + version: typing.Text = ... + channels: builtins.bytes = ... + moniker: typing.Text = ... + @property + def other(self) -> global___DefaultNodeInfoOther: ... + def __init__(self, + *, + protocol_version : typing.Optional[global___ProtocolVersion] = ..., + default_node_id : typing.Text = ..., + listen_addr : typing.Text = ..., + network : typing.Text = ..., + version : typing.Text = ..., + channels : builtins.bytes = ..., + moniker : typing.Text = ..., + other : typing.Optional[global___DefaultNodeInfoOther] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"other",b"other",u"protocol_version",b"protocol_version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"channels",b"channels",u"default_node_id",b"default_node_id",u"listen_addr",b"listen_addr",u"moniker",b"moniker",u"network",b"network",u"other",b"other",u"protocol_version",b"protocol_version",u"version",b"version"]) -> None: ... +global___DefaultNodeInfo = DefaultNodeInfo + +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: typing.Text = ... + rpc_address: typing.Text = ... + def __init__(self, + *, + tx_index : typing.Text = ..., + rpc_address : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"rpc_address",b"rpc_address",u"tx_index",b"tx_index"]) -> None: ... +global___DefaultNodeInfoOther = DefaultNodeInfoOther diff --git a/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi b/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/p2p/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/block_pb2.pyi b/pyband/proto/tendermint/types/block_pb2.pyi new file mode 100644 index 0000000..1e4f187 --- /dev/null +++ b/pyband/proto/tendermint/types/block_pb2.pyi @@ -0,0 +1,38 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +import tendermint.types.evidence_pb2 +import tendermint.types.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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 : typing.Optional[tendermint.types.types_pb2.Header] = ..., + data : typing.Optional[tendermint.types.types_pb2.Data] = ..., + evidence : typing.Optional[tendermint.types.evidence_pb2.EvidenceList] = ..., + last_commit : typing.Optional[tendermint.types.types_pb2.Commit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"evidence",b"evidence",u"header",b"header",u"last_commit",b"last_commit"]) -> None: ... +global___Block = Block diff --git a/pyband/proto/tendermint/types/block_pb2_grpc.pyi b/pyband/proto/tendermint/types/block_pb2_grpc.pyi new file mode 100644 index 0000000..80740df --- /dev/null +++ b/pyband/proto/tendermint/types/block_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .block_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/evidence_pb2.pyi b/pyband/proto/tendermint/types/evidence_pb2.pyi new file mode 100644 index 0000000..d1c633f --- /dev/null +++ b/pyband/proto/tendermint/types/evidence_pb2.pyi @@ -0,0 +1,101 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import tendermint.types.types_pb2 +import tendermint.types.validator_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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 : typing.Optional[global___DuplicateVoteEvidence] = ..., + light_client_attack_evidence : typing.Optional[global___LightClientAttackEvidence] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"duplicate_vote_evidence",b"duplicate_vote_evidence",u"light_client_attack_evidence",b"light_client_attack_evidence",u"sum",b"sum"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal[u"sum",b"sum"]) -> typing.Optional[typing_extensions.Literal["duplicate_vote_evidence","light_client_attack_evidence"]]: ... +global___Evidence = Evidence + +# DuplicateVoteEvidence contains evidence of a validator signed two conflicting votes. +class DuplicateVoteEvidence(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.types.types_pb2.Vote] = ..., + vote_b : typing.Optional[tendermint.types.types_pb2.Vote] = ..., + total_voting_power : builtins.int = ..., + validator_power : builtins.int = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power",u"validator_power",b"validator_power",u"vote_a",b"vote_a",u"vote_b",b"vote_b"]) -> None: ... +global___DuplicateVoteEvidence = DuplicateVoteEvidence + +# LightClientAttackEvidence contains evidence of a set of validators attempting to mislead a light client. +class LightClientAttackEvidence(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.types.types_pb2.LightBlock] = ..., + common_height : builtins.int = ..., + byzantine_validators : typing.Optional[typing.Iterable[tendermint.types.validator_pb2.Validator]] = ..., + total_voting_power : builtins.int = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"byzantine_validators",b"byzantine_validators",u"common_height",b"common_height",u"conflicting_block",b"conflicting_block",u"timestamp",b"timestamp",u"total_voting_power",b"total_voting_power"]) -> None: ... +global___LightClientAttackEvidence = LightClientAttackEvidence + +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 : typing.Optional[typing.Iterable[global___Evidence]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"evidence",b"evidence"]) -> None: ... +global___EvidenceList = EvidenceList diff --git a/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi b/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi new file mode 100644 index 0000000..f487a89 --- /dev/null +++ b/pyband/proto/tendermint/types/evidence_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .evidence_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/params_pb2.pyi b/pyband/proto/tendermint/types/params_pb2.pyi new file mode 100644 index 0000000..ce2e65e --- /dev/null +++ b/pyband/proto/tendermint/types/params_pb2.pyi @@ -0,0 +1,141 @@ +""" +@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.internal.containers +import google.protobuf.message +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# ConsensusParams contains consensus critical parameters that determine the +# validity of blocks. +class ConsensusParams(google.protobuf.message.Message): + 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 : typing.Optional[global___BlockParams] = ..., + evidence : typing.Optional[global___EvidenceParams] = ..., + validator : typing.Optional[global___ValidatorParams] = ..., + version : typing.Optional[global___VersionParams] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block",b"block",u"evidence",b"evidence",u"validator",b"validator",u"version",b"version"]) -> None: ... +global___ConsensusParams = ConsensusParams + +# BlockParams contains limits on the block size. +class BlockParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + MAX_BYTES_FIELD_NUMBER: builtins.int + MAX_GAS_FIELD_NUMBER: builtins.int + TIME_IOTA_MS_FIELD_NUMBER: builtins.int + # Max block size, in bytes. + # Note: must be greater than 0 + max_bytes: builtins.int = ... + # Max gas per block. + # Note: must be greater or equal to -1 + max_gas: builtins.int = ... + # Minimum time increment between consecutive blocks (in milliseconds) If the + # block header timestamp is ahead of the system clock, decrease this value. + # + # Not exposed to the application. + time_iota_ms: builtins.int = ... + def __init__(self, + *, + max_bytes : builtins.int = ..., + max_gas : builtins.int = ..., + time_iota_ms : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_bytes",b"max_bytes",u"max_gas",b"max_gas",u"time_iota_ms",b"time_iota_ms"]) -> None: ... +global___BlockParams = BlockParams + +# EvidenceParams determine how we handle evidence of malfeasance. +class EvidenceParams(google.protobuf.message.Message): + 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 of evidence, in blocks. + # + # The basic formula for calculating this is: MaxAgeDuration / {average block + # time}. + max_age_num_blocks: builtins.int = ... + # 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). + @property + def max_age_duration(self) -> google.protobuf.duration_pb2.Duration: ... + # 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 + max_bytes: builtins.int = ... + def __init__(self, + *, + max_age_num_blocks : builtins.int = ..., + max_age_duration : typing.Optional[google.protobuf.duration_pb2.Duration] = ..., + max_bytes : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"max_age_duration",b"max_age_duration",u"max_age_num_blocks",b"max_age_num_blocks",u"max_bytes",b"max_bytes"]) -> None: ... +global___EvidenceParams = EvidenceParams + +# ValidatorParams restrict the public key types validators can use. +# NOTE: uses ABCI pubkey naming, not Amino names. +class ValidatorParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PUB_KEY_TYPES_FIELD_NUMBER: builtins.int + @property + def pub_key_types(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[typing.Text]: ... + def __init__(self, + *, + pub_key_types : typing.Optional[typing.Iterable[typing.Text]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"pub_key_types",b"pub_key_types"]) -> None: ... +global___ValidatorParams = ValidatorParams + +# VersionParams contains the ABCI application version. +class VersionParams(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + APP_VERSION_FIELD_NUMBER: builtins.int + app_version: builtins.int = ... + def __init__(self, + *, + app_version : builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_version",b"app_version"]) -> None: ... +global___VersionParams = VersionParams + +# HashedParams is a subset of ConsensusParams. +# +# It is hashed into the Header.ConsensusHash. +class HashedParams(google.protobuf.message.Message): + 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[u"block_max_bytes",b"block_max_bytes",u"block_max_gas",b"block_max_gas"]) -> None: ... +global___HashedParams = HashedParams diff --git a/pyband/proto/tendermint/types/params_pb2_grpc.pyi b/pyband/proto/tendermint/types/params_pb2_grpc.pyi new file mode 100644 index 0000000..72a5115 --- /dev/null +++ b/pyband/proto/tendermint/types/params_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .params_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/types_pb2.pyi b/pyband/proto/tendermint/types/types_pb2.pyi new file mode 100644 index 0000000..9b43f8d --- /dev/null +++ b/pyband/proto/tendermint/types/types_pb2.pyi @@ -0,0 +1,391 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +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 tendermint.crypto.proof_pb2 +import tendermint.types.validator_pb2 +import tendermint.version.types_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# BlockIdFlag indicates which BlcokID the signature is for +class BlockIDFlag(_BlockIDFlag, metaclass=_BlockIDFlagEnumTypeWrapper): + pass +class _BlockIDFlag: + V = typing.NewType('V', builtins.int) +class _BlockIDFlagEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_BlockIDFlag.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) + BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) + BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) + BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) + +BLOCK_ID_FLAG_UNKNOWN = BlockIDFlag.V(0) +BLOCK_ID_FLAG_ABSENT = BlockIDFlag.V(1) +BLOCK_ID_FLAG_COMMIT = BlockIDFlag.V(2) +BLOCK_ID_FLAG_NIL = BlockIDFlag.V(3) +global___BlockIDFlag = BlockIDFlag + + +# SignedMsgType is a type of signed message in the consensus. +class SignedMsgType(_SignedMsgType, metaclass=_SignedMsgTypeEnumTypeWrapper): + pass +class _SignedMsgType: + V = typing.NewType('V', builtins.int) +class _SignedMsgTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SignedMsgType.V], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor = ... + SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) + # Votes + SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) + SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) + # Proposals + SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) + +SIGNED_MSG_TYPE_UNKNOWN = SignedMsgType.V(0) +# Votes +SIGNED_MSG_TYPE_PREVOTE = SignedMsgType.V(1) +SIGNED_MSG_TYPE_PRECOMMIT = SignedMsgType.V(2) +# Proposals +SIGNED_MSG_TYPE_PROPOSAL = SignedMsgType.V(32) +global___SignedMsgType = SignedMsgType + + +# PartsetHeader +class PartSetHeader(google.protobuf.message.Message): + 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[u"hash",b"hash",u"total",b"total"]) -> None: ... +global___PartSetHeader = PartSetHeader + +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 : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"bytes",b"bytes",u"index",b"index",u"proof",b"proof"]) -> None: ... +global___Part = Part + +# BlockID +class BlockID(google.protobuf.message.Message): + 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 : typing.Optional[global___PartSetHeader] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"part_set_header",b"part_set_header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"hash",b"hash",u"part_set_header",b"part_set_header"]) -> None: ... +global___BlockID = BlockID + +# -------------------------------- + +# Header defines the structure of a Tendermint block header. +class Header(google.protobuf.message.Message): + 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 + # basic block info + @property + def version(self) -> tendermint.version.types_pb2.Consensus: ... + chain_id: typing.Text = ... + height: builtins.int = ... + @property + def time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + # prev block info + @property + def last_block_id(self) -> global___BlockID: ... + # hashes of block data + # commit from validators from the last block + last_commit_hash: builtins.bytes = ... + # transactions + data_hash: builtins.bytes = ... + # hashes from the app output from the prev block + # validators for the current block + validators_hash: builtins.bytes = ... + # validators for the next block + next_validators_hash: builtins.bytes = ... + # consensus params for current block + consensus_hash: builtins.bytes = ... + # state after txs from the previous block + app_hash: builtins.bytes = ... + # root hash of all results from the txs from the previous block + last_results_hash: builtins.bytes = ... + # consensus info + # evidence included in the block + evidence_hash: builtins.bytes = ... + # original proposer of the block + proposer_address: builtins.bytes = ... + def __init__(self, + *, + version : typing.Optional[tendermint.version.types_pb2.Consensus] = ..., + chain_id : typing.Text = ..., + height : builtins.int = ..., + time : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + last_block_id : typing.Optional[global___BlockID] = ..., + 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[u"last_block_id",b"last_block_id",u"time",b"time",u"version",b"version"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"app_hash",b"app_hash",u"chain_id",b"chain_id",u"consensus_hash",b"consensus_hash",u"data_hash",b"data_hash",u"evidence_hash",b"evidence_hash",u"height",b"height",u"last_block_id",b"last_block_id",u"last_commit_hash",b"last_commit_hash",u"last_results_hash",b"last_results_hash",u"next_validators_hash",b"next_validators_hash",u"proposer_address",b"proposer_address",u"time",b"time",u"validators_hash",b"validators_hash",u"version",b"version"]) -> None: ... +global___Header = Header + +# Data contains the set of transactions included in the block +class Data(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + TXS_FIELD_NUMBER: builtins.int + # 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. + @property + def txs(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.bytes]: ... + def __init__(self, + *, + txs : typing.Optional[typing.Iterable[builtins.bytes]] = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"txs",b"txs"]) -> None: ... +global___Data = Data + +# Vote represents a prevote, precommit, or commit vote from validators for +# consensus. +class Vote(google.protobuf.message.Message): + 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.V = ... + height: builtins.int = ... + round: builtins.int = ... + # zero if vote is nil. + @property + def block_id(self) -> global___BlockID: ... + @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.V = ..., + height : builtins.int = ..., + round : builtins.int = ..., + block_id : typing.Optional[global___BlockID] = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + validator_address : builtins.bytes = ..., + validator_index : builtins.int = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type",u"validator_address",b"validator_address",u"validator_index",b"validator_index"]) -> None: ... +global___Vote = Vote + +# Commit contains the evidence that a block was committed by a set of validators. +class Commit(google.protobuf.message.Message): + 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 : typing.Optional[global___BlockID] = ..., + signatures : typing.Optional[typing.Iterable[global___CommitSig]] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"round",b"round",u"signatures",b"signatures"]) -> None: ... +global___Commit = Commit + +# CommitSig is a part of the Vote included in a Commit. +class CommitSig(google.protobuf.message.Message): + 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.V = ... + validator_address: builtins.bytes = ... + @property + def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + signature: builtins.bytes = ... + def __init__(self, + *, + block_id_flag : global___BlockIDFlag.V = ..., + validator_address : builtins.bytes = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id_flag",b"block_id_flag",u"signature",b"signature",u"timestamp",b"timestamp",u"validator_address",b"validator_address"]) -> None: ... +global___CommitSig = CommitSig + +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.V = ... + 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.V = ..., + height : builtins.int = ..., + round : builtins.int = ..., + pol_round : builtins.int = ..., + block_id : typing.Optional[global___BlockID] = ..., + timestamp : typing.Optional[google.protobuf.timestamp_pb2.Timestamp] = ..., + signature : builtins.bytes = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"timestamp",b"timestamp"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"height",b"height",u"pol_round",b"pol_round",u"round",b"round",u"signature",b"signature",u"timestamp",b"timestamp",u"type",b"type"]) -> None: ... +global___Proposal = Proposal + +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 : typing.Optional[global___Header] = ..., + commit : typing.Optional[global___Commit] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"commit",b"commit",u"header",b"header"]) -> None: ... +global___SignedHeader = SignedHeader + +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 : typing.Optional[global___SignedHeader] = ..., + validator_set : typing.Optional[tendermint.types.validator_pb2.ValidatorSet] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"signed_header",b"signed_header",u"validator_set",b"validator_set"]) -> None: ... +global___LightBlock = LightBlock + +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 : typing.Optional[global___BlockID] = ..., + block_size : builtins.int = ..., + header : typing.Optional[global___Header] = ..., + num_txs : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"header",b"header"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"block_id",b"block_id",u"block_size",b"block_size",u"header",b"header",u"num_txs",b"num_txs"]) -> None: ... +global___BlockMeta = BlockMeta + +# TxProof represents a Merkle proof of the presence of a transaction in the Merkle tree. +class TxProof(google.protobuf.message.Message): + 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 : typing.Optional[tendermint.crypto.proof_pb2.Proof] = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proof",b"proof"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"data",b"data",u"proof",b"proof",u"root_hash",b"root_hash"]) -> None: ... +global___TxProof = TxProof diff --git a/pyband/proto/tendermint/types/types_pb2_grpc.pyi b/pyband/proto/tendermint/types/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/types/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/types/validator_pb2.pyi b/pyband/proto/tendermint/types/validator_pb2.pyi new file mode 100644 index 0000000..1738456 --- /dev/null +++ b/pyband/proto/tendermint/types/validator_pb2.pyi @@ -0,0 +1,71 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +import tendermint.crypto.keys_pb2 +import typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +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 : typing.Optional[typing.Iterable[global___Validator]] = ..., + proposer : typing.Optional[global___Validator] = ..., + total_voting_power : builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal[u"proposer",b"proposer",u"total_voting_power",b"total_voting_power",u"validators",b"validators"]) -> None: ... +global___ValidatorSet = ValidatorSet + +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 : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + voting_power : builtins.int = ..., + proposer_priority : 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"address",b"address",u"proposer_priority",b"proposer_priority",u"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___Validator = Validator + +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 : typing.Optional[tendermint.crypto.keys_pb2.PublicKey] = ..., + voting_power : 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"pub_key",b"pub_key",u"voting_power",b"voting_power"]) -> None: ... +global___SimpleValidator = SimpleValidator diff --git a/pyband/proto/tendermint/types/validator_pb2_grpc.pyi b/pyband/proto/tendermint/types/validator_pb2_grpc.pyi new file mode 100644 index 0000000..3dafcaa --- /dev/null +++ b/pyband/proto/tendermint/types/validator_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .validator_pb2 import * \ No newline at end of file diff --git a/pyband/proto/tendermint/version/types_pb2.pyi b/pyband/proto/tendermint/version/types_pb2.pyi new file mode 100644 index 0000000..e850c64 --- /dev/null +++ b/pyband/proto/tendermint/version/types_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 typing +import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor = ... + +# App includes the protocol and software version for the application. +# This information is included in ResponseInfo. The App.Protocol can be +# updated in ResponseEndBlock. +class App(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor = ... + PROTOCOL_FIELD_NUMBER: builtins.int + SOFTWARE_FIELD_NUMBER: builtins.int + protocol: builtins.int = ... + software: typing.Text = ... + def __init__(self, + *, + protocol : builtins.int = ..., + software : typing.Text = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal[u"protocol",b"protocol",u"software",b"software"]) -> None: ... +global___App = App + +# 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. +class Consensus(google.protobuf.message.Message): + 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[u"app",b"app",u"block",b"block"]) -> None: ... +global___Consensus = Consensus diff --git a/pyband/proto/tendermint/version/types_pb2_grpc.pyi b/pyband/proto/tendermint/version/types_pb2_grpc.pyi new file mode 100644 index 0000000..7bed339 --- /dev/null +++ b/pyband/proto/tendermint/version/types_pb2_grpc.pyi @@ -0,0 +1,6 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +""" + +from .types_pb2 import * \ No newline at end of file