keeper

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: GPL-3.0 Imports: 15 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 SeedQueryPlugin

func SeedQueryPlugin(randomnessKeeper *Querier) func(ctx sdk.Context, request json.RawMessage) ([]byte, error)

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey storetypes.StoreKey) *Keeper

func (Keeper) GetSeed

func (k Keeper) GetSeed(ctx sdk.Context) string

GetSeed returns the seed.

func (Keeper) GetValidatorVRFPubKey

func (k Keeper) GetValidatorVRFPubKey(ctx sdk.Context, consensusAddr string) (cryptotypes.PubKey, error)

GetValidatorVRFPubKey retrieves from the store the VRF public key corresponding to the given validator consensus address.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) SetSeed

func (k Keeper) SetSeed(ctx sdk.Context, seed string)

SetSeed stores the seed.

func (Keeper) SetValidatorVRFPubKey

func (k Keeper) SetValidatorVRFPubKey(goCtx context.Context, consensusAddr string, vrfPubKey cryptotypes.PubKey) error

type ProposalHandler

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

func NewDefaultProposalHandler

func NewDefaultProposalHandler(txVerifier baseapp.ProposalTxVerifier) *ProposalHandler

func (*ProposalHandler) PrepareProposalHandler

func (h *ProposalHandler) PrepareProposalHandler(
	txConfig client.TxConfig,
	vrfSigner vrfSigner,
	keeper Keeper,
	authKeeper types.AccountKeeper,
	_ types.StakingKeeper,
) sdk.PrepareProposalHandler

func (*ProposalHandler) ProcessProposalHandler

func (h *ProposalHandler) ProcessProposalHandler(
	vrfSigner vrfSigner,
	keeper Keeper,
	_ types.StakingKeeper,
) sdk.ProcessProposalHandler

type Querier

type Querier struct {
	Keeper
}

func NewQuerierImpl

func NewQuerierImpl(keeper Keeper) *Querier

func (Querier) Seed

Jump to

Keyboard shortcuts

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