keeper

package
v0.0.0-...-18a1854 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 18 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.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService store.KVStoreService,
	logger log.Logger,
	authority string,

) Keeper

func (Keeper) GetAllStoredVoting

func (k Keeper) GetAllStoredVoting(ctx context.Context) (list []types.StoredVoting)

GetAllStoredVoting returns all storedVoting

func (Keeper) GetAuthority

func (k Keeper) GetAuthority() string

GetAuthority returns the module's authority.

func (Keeper) GetParams

func (k Keeper) GetParams(ctx context.Context) (params types.Params)

GetParams get all parameters as types.Params

func (Keeper) GetStoredVoting

func (k Keeper) GetStoredVoting(
	ctx context.Context,
	index string,

) (val types.StoredVoting, found bool)

GetStoredVoting returns a storedVoting from its index

func (Keeper) GetSystemInfo

func (k Keeper) GetSystemInfo(ctx context.Context) (val types.SystemInfo, found bool)

GetSystemInfo returns systemInfo

func (Keeper) ListVoters

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

Logger returns a module-specific logger.

func (Keeper) Params

func (Keeper) RemoveStoredVoting

func (k Keeper) RemoveStoredVoting(
	ctx context.Context,
	index string,

)

RemoveStoredVoting removes a storedVoting from the store

func (Keeper) RemoveSystemInfo

func (k Keeper) RemoveSystemInfo(ctx context.Context)

RemoveSystemInfo removes systemInfo from the store

func (Keeper) SetParams

func (k Keeper) SetParams(ctx context.Context, params types.Params) error

SetParams set the params

func (Keeper) SetStoredVoting

func (k Keeper) SetStoredVoting(ctx context.Context, storedVoting types.StoredVoting)

SetStoredVoting set a specific storedVoting in the store from its index

func (Keeper) SetSystemInfo

func (k Keeper) SetSystemInfo(ctx context.Context, systemInfo types.SystemInfo)

SetSystemInfo set systemInfo in the store

func (Keeper) ShowVoter

Jump to

Keyboard shortcuts

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