Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(k Keeper) types.QueryServer
- type Keeper
- func (k Keeper) AddNewKey(ctx context.Context, raw []byte) error
- func (k Keeper) EndBlocker(ctx context.Context) error
- func (k Keeper) GetCurrentProposer(ctx context.Context) (sdktypes.AccAddress, error)
- func (k Keeper) HasPubkey(ctx context.Context, raw []byte) (bool, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) ProcessRelayerRequest(ctx context.Context, req goattypes.RelayerRequests) error
- func (k Keeper) SetProposalSeq(ctx context.Context, seq uint64) error
- func (k Keeper) UpdateRandao(ctx context.Context, req types.IVoteMsg) error
- func (k Keeper) VerifyNonProposal(ctx context.Context, req types.INonVoteMsg) (types.IRelayer, error)
- func (k Keeper) VerifyProposal(ctx context.Context, req types.IVoteMsg, verifyFn ...func(sigdoc []byte) error) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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) EndBlocker ¶
EndBlocker elects new proposer and increase epoch number at regular intervals
func (Keeper) GetCurrentProposer ¶
func (Keeper) ProcessRelayerRequest ¶
func (Keeper) SetProposalSeq ¶
func (Keeper) UpdateRandao ¶
func (Keeper) VerifyNonProposal ¶
Click to show internal directories.
Click to hide internal directories.