Documentation ¶
Index ¶
- func ExportAnnouncements(store sdk.KVStore) ([]*types.GenesisAnnouncement, error)
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Announcement(goCtx context.Context, msg *types.MsgAnnouncement) (resp *types.MsgAnnouncementResponse, err error)
- func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k Keeper) GetAnnouncedStorageLocations(ctx context.Context, req *types.GetAnnouncedStorageLocationsRequest) (*types.GetAnnouncedStorageLocationsResponse, error)
- func (k Keeper) GetAnnouncedValidators(ctx context.Context, req *types.GetAnnouncedValidatorsRequest) (*types.GetAnnouncedValidatorsResponse, error)
- func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState) error
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 ¶
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 ¶
func (k Keeper) GetAnnouncedStorageLocations(ctx context.Context, req *types.GetAnnouncedStorageLocationsRequest) (*types.GetAnnouncedStorageLocationsResponse, error)
GetAnnouncedStorageLocations returns the list of storage locations for each requested validator
func (Keeper) GetAnnouncedValidators ¶
func (k Keeper) GetAnnouncedValidators(ctx context.Context, req *types.GetAnnouncedValidatorsRequest) (*types.GetAnnouncedValidatorsResponse, error)
GetAnnouncedValidators list of validators that have been announced
func (Keeper) InitGenesis ¶
InitGenesis initializes the hyperlane announce module's state from a provided genesis state.
Click to show internal directories.
Click to hide internal directories.