types

package
v0.0.0-...-3a28d7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ModuleName is the name of the restaking coordinator module
	ModuleName = "restakingConsumer"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// RouterKey is the msg router key for the restaking coordinator module
	RouterKey = ModuleName

	QuerierRoute = ModuleName
)
View Source
const (
	ValidatorSetUpdateIDKey byte = iota

	ValidatorSetChangeSet

	PendingValidatorSlashListKey

	CoordinatorChannelID

	OperatorAddressPrefix

	NotifyUpdateValidators
)

Variables

View Source
var (
	ErrRestakingChannelNotFound = errorsmod.Register(ModuleName, 1, "can't found restaking protocol ibc channel")
	ErrUnknownPacketChannel     = errorsmod.Register(ModuleName, 2, "not restaking protocol channel")
	ErrUnknownValidator         = errorsmod.Register(ModuleName, 3, "unknown validator")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)

Functions

func GetCoordinatorChannelIDKey

func GetCoordinatorChannelIDKey() []byte

func GetPendingConsumerSlashListKey

func GetPendingConsumerSlashListKey() []byte

func GetPendingValidatorChangeSetKey

func GetPendingValidatorChangeSetKey() []byte

func GetValidatorSetUpdateIDKey

func GetValidatorSetUpdateIDKey() []byte

func NotifyUpdateValidatorKey

func NotifyUpdateValidatorKey() []byte

func OperatorAddressKey

func OperatorAddressKey(operatorAddress sdk.AccAddress, valAddr sdk.ValAddress) []byte

func ParseValidatorOperatorKey

func ParseValidatorOperatorKey(key []byte) []byte

Types

type GenesisState

type GenesisState struct {
}

GenesisState defines the restaking consumer module's genesis state.

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL