Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) GetAllStoredVoting(ctx context.Context) (list []types.StoredVoting)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx context.Context) (params types.Params)
- func (k Keeper) GetStoredVoting(ctx context.Context, index string) (val types.StoredVoting, found bool)
- func (k Keeper) GetSystemInfo(ctx context.Context) (val types.SystemInfo, found bool)
- func (k Keeper) ListVoters(goCtx context.Context, req *types.QueryListVotersRequest) (*types.QueryListVotersResponse, error)
- func (k Keeper) Logger() log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveStoredVoting(ctx context.Context, index string)
- func (k Keeper) RemoveSystemInfo(ctx context.Context)
- func (k Keeper) SetParams(ctx context.Context, params types.Params) error
- func (k Keeper) SetStoredVoting(ctx context.Context, storedVoting types.StoredVoting)
- func (k Keeper) SetSystemInfo(ctx context.Context, systemInfo types.SystemInfo)
- func (k Keeper) ShowVoter(goCtx context.Context, req *types.QueryShowVoterRequest) (*types.QueryShowVoterResponse, error)
- func (k Keeper) StoredVoting(ctx context.Context, req *types.QueryGetStoredVotingRequest) (*types.QueryGetStoredVotingResponse, error)
- func (k Keeper) StoredVotingAll(ctx context.Context, req *types.QueryAllStoredVotingRequest) (*types.QueryAllStoredVotingResponse, error)
- func (k Keeper) SystemInfo(goCtx context.Context, req *types.QueryGetSystemInfoRequest) (*types.QueryGetSystemInfoResponse, 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.
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 ¶
GetAuthority returns the module's authority.
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 ¶
GetSystemInfo returns systemInfo
func (Keeper) ListVoters ¶
func (k Keeper) ListVoters(goCtx context.Context, req *types.QueryListVotersRequest) (*types.QueryListVotersResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveStoredVoting ¶
RemoveStoredVoting removes a storedVoting from the store
func (Keeper) RemoveSystemInfo ¶
RemoveSystemInfo removes systemInfo from the store
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 ¶
func (k Keeper) ShowVoter(goCtx context.Context, req *types.QueryShowVoterRequest) (*types.QueryShowVoterResponse, error)
func (Keeper) StoredVoting ¶
func (k Keeper) StoredVoting(ctx context.Context, req *types.QueryGetStoredVotingRequest) (*types.QueryGetStoredVotingResponse, error)
func (Keeper) StoredVotingAll ¶
func (k Keeper) StoredVotingAll(ctx context.Context, req *types.QueryAllStoredVotingRequest) (*types.QueryAllStoredVotingResponse, error)
func (Keeper) SystemInfo ¶
func (k Keeper) SystemInfo(goCtx context.Context, req *types.QueryGetSystemInfoRequest) (*types.QueryGetSystemInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.