Versions in this module Expand all Collapse all v0 v0.48.86 Oct 24, 2023 v0.48.84 Oct 24, 2023 Changes in this version + const DefaultIndex + const MemStoreKey + const ModuleName + const StoreKey + var ErrCapabilityNotFound = sdkerrors.Register(ModuleName, 7, "capability not found") + var ErrCapabilityNotOwned = sdkerrors.Register(ModuleName, 6, "capability not owned by module") + var ErrCapabilityOwnersNotFound = sdkerrors.Register(ModuleName, 8, "owners not found for capability") + var ErrCapabilityTaken = sdkerrors.Register(ModuleName, 4, "capability name already taken") + var ErrIntOverflowCapability = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") + var ErrInvalidCapabilityName = sdkerrors.Register(ModuleName, 2, "capability name not valid") + var ErrInvalidLengthCapability = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNilCapability = sdkerrors.Register(ModuleName, 3, "provided capability is nil") + var ErrOwnerClaimed = sdkerrors.Register(ModuleName, 5, "given owner already claimed capability") + var ErrUnexpectedEndOfGroupCapability = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") + var KeyIndex = []byte("index") + var KeyMemInitialized = []byte("mem_initialized") + var KeyPrefixIndexCapability = []byte("capability_index") + func FwdCapabilityKey(module string, cap *Capability) []byte + func IndexFromKey(key []byte) uint64 + func IndexToKey(index uint64) []byte + func RevCapabilityKey(module, name string) []byte + type Capability struct + Index uint64 + func NewCapability(index uint64) *Capability + func (*Capability) Descriptor() ([]byte, []int) + func (*Capability) ProtoMessage() + func (m *Capability) GetIndex() uint64 + func (m *Capability) Marshal() (dAtA []byte, err error) + func (m *Capability) MarshalTo(dAtA []byte) (int, error) + func (m *Capability) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Capability) Reset() + func (m *Capability) Size() (n int) + func (m *Capability) String() string + func (m *Capability) Unmarshal(dAtA []byte) error + func (m *Capability) XXX_DiscardUnknown() + func (m *Capability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Capability) XXX_Merge(src proto.Message) + func (m *Capability) XXX_Size() int + func (m *Capability) XXX_Unmarshal(b []byte) error + type CapabilityOwners struct + Owners []Owner + func NewCapabilityOwners() *CapabilityOwners + func (*CapabilityOwners) Descriptor() ([]byte, []int) + func (*CapabilityOwners) ProtoMessage() + func (co *CapabilityOwners) Get(owner Owner) (int, bool) + func (co *CapabilityOwners) Remove(owner Owner) + func (co *CapabilityOwners) Set(owner Owner) error + func (m *CapabilityOwners) GetOwners() []Owner + func (m *CapabilityOwners) Marshal() (dAtA []byte, err error) + func (m *CapabilityOwners) MarshalTo(dAtA []byte) (int, error) + func (m *CapabilityOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *CapabilityOwners) Reset() + func (m *CapabilityOwners) Size() (n int) + func (m *CapabilityOwners) String() string + func (m *CapabilityOwners) Unmarshal(dAtA []byte) error + func (m *CapabilityOwners) XXX_DiscardUnknown() + func (m *CapabilityOwners) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *CapabilityOwners) XXX_Merge(src proto.Message) + func (m *CapabilityOwners) XXX_Size() int + func (m *CapabilityOwners) XXX_Unmarshal(b []byte) error + type GenesisOwners struct + Index uint64 + IndexOwners CapabilityOwners + func (*GenesisOwners) Descriptor() ([]byte, []int) + func (*GenesisOwners) ProtoMessage() + func (m *GenesisOwners) GetIndex() uint64 + func (m *GenesisOwners) GetIndexOwners() CapabilityOwners + func (m *GenesisOwners) Marshal() (dAtA []byte, err error) + func (m *GenesisOwners) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisOwners) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisOwners) Reset() + func (m *GenesisOwners) Size() (n int) + func (m *GenesisOwners) String() string + func (m *GenesisOwners) Unmarshal(dAtA []byte) error + func (m *GenesisOwners) XXX_DiscardUnknown() + func (m *GenesisOwners) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisOwners) XXX_Merge(src proto.Message) + func (m *GenesisOwners) XXX_Size() int + func (m *GenesisOwners) XXX_Unmarshal(b []byte) error + type GenesisState struct + Index uint64 + Owners []GenesisOwners + func DefaultGenesis() *GenesisState + func (*GenesisState) Descriptor() ([]byte, []int) + func (*GenesisState) ProtoMessage() + func (gs GenesisState) Validate() error + func (m *GenesisState) GetIndex() uint64 + func (m *GenesisState) GetOwners() []GenesisOwners + func (m *GenesisState) Marshal() (dAtA []byte, err error) + func (m *GenesisState) MarshalTo(dAtA []byte) (int, error) + func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *GenesisState) Reset() + func (m *GenesisState) Size() (n int) + func (m *GenesisState) String() string + func (m *GenesisState) Unmarshal(dAtA []byte) error + func (m *GenesisState) XXX_DiscardUnknown() + func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *GenesisState) XXX_Merge(src proto.Message) + func (m *GenesisState) XXX_Size() int + func (m *GenesisState) XXX_Unmarshal(b []byte) error + type Owner struct + Module string + Name string + func NewOwner(module, name string) Owner + func (*Owner) Descriptor() ([]byte, []int) + func (*Owner) ProtoMessage() + func (m *Owner) Marshal() (dAtA []byte, err error) + func (m *Owner) MarshalTo(dAtA []byte) (int, error) + func (m *Owner) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Owner) Reset() + func (m *Owner) Size() (n int) + func (m *Owner) String() string + func (m *Owner) Unmarshal(dAtA []byte) error + func (m *Owner) XXX_DiscardUnknown() + func (m *Owner) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Owner) XXX_Merge(src proto.Message) + func (m *Owner) XXX_Size() int + func (m *Owner) XXX_Unmarshal(b []byte) error + func (o Owner) Key() string