keeper

package
v0.0.0-...-2617881 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportGenesis

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

func InitGenesis

func InitGenesis(ctx sdk.Context, k Keeper, data *types.GenesisState)

func NewMsgServerImpl

func NewMsgServerImpl(keeper *Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the module MsgServer interface.

func NewQueryServerImpl

func NewQueryServerImpl(k *Keeper) types.QueryServer

NewQueryServerImpl returns an implementation of the module QueryServer.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

Keeper is used to handle all core implementations of Isms and implements the Go HyperlaneInterchainSecurityModule. Every core ISM does not require any outside keeper and can therefore all be handled by the same handler. If an ISM needs to access state in the future, one needs to provide another IsmHandler which holds the keeper and can access state.

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeService storetypes.KVStoreService) Keeper

func (*Keeper) Exists

func (k *Keeper) Exists(ctx context.Context, ismId util.HexAddress) (bool, error)

Exists checks if the given ISM id does exist.

func (*Keeper) SetCoreKeeper

func (k *Keeper) SetCoreKeeper(coreKeeper types.CoreKeeper)

func (*Keeper) Verify

func (k *Keeper) Verify(ctx context.Context, ismId util.HexAddress, metadata []byte, message util.HyperlaneMessage) (bool, error)

Verify checks if the metadata has signed the message correctly.

Jump to

Keyboard shortcuts

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