Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "election"
Variables ¶
View Source
var (
ElectionKey = collections.NewPrefix(0)
)
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the module MsgServer interface.
func NewQueryServerImpl ¶
func NewQueryServerImpl(k Keeper) election.QueryServer
NewQueryServerImpl returns an implementation of the module QueryServer.
Types ¶
type Keeper ¶
type Keeper struct { // state management Schema collections.Schema ElectionID collections.Sequence Election collections.Map[uint64, election.Election] // key: ID Params collections.Item[election.Params] // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc codec.BinaryCodec, addressCodec address.Codec, storeService storetypes.KVStoreService, crs expectedkeepers.CrsKeeper, authority string) Keeper
func (Keeper) Endblocker ¶
func (Keeper) GetAuthority ¶
func (Keeper) GetGenesisHandler ¶
func (k Keeper) GetGenesisHandler() appmodule.HasGenesis
func (*Keeper) InitGenesis ¶
InitGenesis initializes the module state from a genesis state.
Click to show internal directories.
Click to hide internal directories.