keeper

package
v0.0.0-...-7a75bab Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAttestatorHandler

func NewAttestatorHandler(k Keeper) lightclient.AttestatorsController

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the configmodule MsgServer interface for the provided Keeper.

func NewQueryServer

func NewQueryServer(k Keeper) types.QueryServer

func RegisterInvariants

func RegisterInvariants(ir sdk.InvariantRegistry, k Keeper)

RegisterInvariants registers the configmodule module invariants

Types

type AttestatorHandler

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

func (AttestatorHandler) GetPublicKey

func (a AttestatorHandler) GetPublicKey(ctx context.Context, attestatorId []byte) (cryptotypes.PubKey, error)

func (AttestatorHandler) SufficientAttestations

func (a AttestatorHandler) SufficientAttestations(ctx context.Context, attestatorIds [][]byte) (bool, error)

type Keeper

type Keeper struct {
	Schema      collections.Schema
	Params      collections.Item[types.Params]
	Attestators collections.Map[[]byte, types.Attestator]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	storeService store.KVStoreService,
	cdc codec.BinaryCodec,
	validatorAddressCodec addresscodec.Codec,
	authority string,
	stakingKeeper types.StakingKeeper,
) Keeper

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the configmodule module's authority.

func (Keeper) SetNewAttestator

func (k Keeper) SetNewAttestator(ctx context.Context, attestator types.Attestator) error

Jump to

Keyboard shortcuts

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