keeper

package
v1.1.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 17 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,
	storeKey,
	memKey storetypes.StoreKey,
	router *baseapp.MsgServiceRouter,
	accountKeeper types.AccountKeeper,
) *Keeper

func (Keeper) EndBlocker

func (k Keeper) EndBlocker(ctx sdk.Context)

func (Keeper) ExecuteProposal

func (k Keeper) ExecuteProposal(ctx sdk.Context, proposal types.Proposal) (status types.ProposalStatus, err error)

func (Keeper) GetAllGroup

func (k Keeper) GetAllGroup(ctx sdk.Context) (list []types.Group)

GetAllGroup returns all groups

func (Keeper) GetAllProposal

func (k Keeper) GetAllProposal(ctx sdk.Context) (list []types.Proposal)

GetAllProposal returns all proposals

func (Keeper) GetAllVote

func (k Keeper) GetAllVote(ctx sdk.Context) (list []types.Vote)

GetAllVote returns all votes

func (Keeper) GetAllVoteByProposalId

func (k Keeper) GetAllVoteByProposalId(ctx sdk.Context, proposalId uint64) (list []types.Vote)

GetAllVoteByProposalId returns all votes by proposal id

func (Keeper) GetGroup

func (k Keeper) GetGroup(ctx sdk.Context, groupAccount string) (val types.Group, found bool)

GetGroup returns a group from its groupAccount

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetProposal

func (k Keeper) GetProposal(ctx sdk.Context, id uint64) (val types.Proposal, found bool)

GetProposal returns a proposal from its id

func (Keeper) GetVote

func (k Keeper) GetVote(ctx sdk.Context, proposalId uint64, voter string) (val types.Vote, found bool)

GetVote returns a vote from its proposal id and voter

func (Keeper) Group

func (Keeper) GroupAll

func (Keeper) IterateProposals

func (k Keeper) IterateProposals(ctx sdk.Context, f func(report types.Proposal) (stop bool))

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RemoveGroup

func (k Keeper) RemoveGroup(ctx sdk.Context, groupAccount string)

RemoveGroup removes a group from the store

func (Keeper) RemoveProposal

func (k Keeper) RemoveProposal(ctx sdk.Context, id uint64)

RemoveProposal removes a proposal from the store

func (Keeper) RemoveVote

func (k Keeper) RemoveVote(ctx sdk.Context, proposalId uint64, voter string)

RemoveVote removes a vote from the store

func (Keeper) SetGroup

func (k Keeper) SetGroup(ctx sdk.Context, group types.Group)

SetGroup set a specific group in the store from its groupAccount

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetProposal

func (k Keeper) SetProposal(ctx sdk.Context, proposal types.Proposal)

SetProposal set a specific proposal in the store from its id

func (Keeper) SetVote

func (k Keeper) SetVote(ctx sdk.Context, vote types.Vote)

SetVote set a specific vote in the store from its proposal id and voter

func (Keeper) Tally

func (k Keeper) Tally(ctx sdk.Context, proposalId uint64) *types.TallyResult

func (Keeper) Vote

func (Keeper) VoteAll

Jump to

Keyboard shortcuts

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