keeper

package
v0.0.1-testnet-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func NewQueryServerImpl

func NewQueryServerImpl(k Keeper) types.QueryServer

NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	AddrCodec address.Codec
	Params    collections.Item[types.Params]
	Relayer   collections.Item[types.Relayer]
	Sequence  collections.Sequence
	Voters    collections.Map[string, types.Voter]
	Queue     collections.Item[types.VoterQueue]
	Pubkeys   collections.KeySet[[]byte]
	Randao    collections.Item[[]byte]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	addressCodec address.Codec,
	storeService store.KVStoreService,
	accountKeeper types.AccountKeeper,
	logger log.Logger,
) Keeper

func (Keeper) AddNewKey

func (k Keeper) AddNewKey(ctx context.Context, raw []byte) error

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx context.Context) error

EndBlocker elects new proposer and increase epoch number at regular intervals

func (Keeper) GetCurrentProposer

func (k Keeper) GetCurrentProposer(ctx context.Context) (sdktypes.AccAddress, error)

func (Keeper) HasPubkey

func (k Keeper) HasPubkey(ctx context.Context, raw []byte) (bool, error)

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) ProcessRelayerRequest

func (k Keeper) ProcessRelayerRequest(ctx context.Context, req goattypes.RelayerRequests) error

func (Keeper) SetProposalSeq

func (k Keeper) SetProposalSeq(ctx context.Context, seq uint64) error

func (Keeper) UpdateRandao

func (k Keeper) UpdateRandao(ctx context.Context, req types.IVoteMsg) error

func (Keeper) VerifyNonProposal

func (k Keeper) VerifyNonProposal(ctx context.Context, req types.INonVoteMsg) (types.IRelayer, error)

func (Keeper) VerifyProposal

func (k Keeper) VerifyProposal(ctx context.Context, req types.IVoteMsg, verifyFn ...func(sigdoc []byte) error) (uint64, error)

Jump to

Keyboard shortcuts

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