# Generated by the protocol buffer compiler. DO NOT EDIT!
# sources: capability/v1/capability.proto, capability/v1/genesis.proto
# plugin: python-betterproto
# This file has been @generated
from dataclasses import dataclass
from typing import List
import betterproto
[docs]
@dataclass(eq=False, repr=False)
class Capability(betterproto.Message):
"""
Capability defines an implementation of an object capability. The index
provided to a Capability must be globally unique.
"""
index: int = betterproto.uint64_field(1)
[docs]
@dataclass(eq=False, repr=False)
class Owner(betterproto.Message):
"""
Owner defines a single capability owner. An owner is defined by the name of
capability and the module name.
"""
module: str = betterproto.string_field(1)
name: str = betterproto.string_field(2)
[docs]
@dataclass(eq=False, repr=False)
class CapabilityOwners(betterproto.Message):
"""
CapabilityOwners defines a set of owners of a single Capability. The set of
owners must be unique.
"""
owners: List["Owner"] = betterproto.message_field(1)
[docs]
@dataclass(eq=False, repr=False)
class GenesisOwners(betterproto.Message):
"""GenesisOwners defines the capability owners with their corresponding index."""
index: int = betterproto.uint64_field(1)
"""index is the index of the capability owner."""
index_owners: "CapabilityOwners" = betterproto.message_field(2)
"""index_owners are the owners at the given index."""
[docs]
@dataclass(eq=False, repr=False)
class GenesisState(betterproto.Message):
"""GenesisState defines the capability module's genesis state."""
index: int = betterproto.uint64_field(1)
"""index is the capability global index."""
owners: List["GenesisOwners"] = betterproto.message_field(2)
"""
owners represents a map from index to owners of the capability index
index key is string to allow amino marshalling.
"""