keeper

package
v0.0.0-...-eab7081 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportAnnouncements

func ExportAnnouncements(store sdk.KVStore) ([]*types.GenesisAnnouncement, error)

getAnnouncedValidators unmarshal announced validators from storage

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl return an implementation of the announce MsgServer interface for the provided keeper

Types

type Keeper

type Keeper struct {
	// implements gRPC QueryServer interface
	types.QueryServer
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, key storetypes.StoreKey, mailboxKeeper mailbox.ReadOnlyMailboxKeeper) Keeper

func (Keeper) Announcement

func (k Keeper) Announcement(goCtx context.Context, msg *types.MsgAnnouncement) (resp *types.MsgAnnouncementResponse, err error)

Announcement declares a storage location for a hyperlane validator

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState

ExportGenesis returns the hyperlane announce module's exported genesis.

func (Keeper) GetAnnouncedStorageLocations

GetAnnouncedStorageLocations returns the list of storage locations for each requested validator

func (Keeper) GetAnnouncedValidators

GetAnnouncedValidators list of validators that have been announced

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) error

InitGenesis initializes the hyperlane announce module's state from a provided genesis state.

Jump to

Keyboard shortcuts

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