Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExecuteProposal(ctx sdk.Context, proposal types.Proposal) (status types.ProposalStatus, err error)
- func (k Keeper) GetAllGroup(ctx sdk.Context) (list []types.Group)
- func (k Keeper) GetAllProposal(ctx sdk.Context) (list []types.Proposal)
- func (k Keeper) GetAllVote(ctx sdk.Context) (list []types.Vote)
- func (k Keeper) GetAllVoteByProposalId(ctx sdk.Context, proposalId uint64) (list []types.Vote)
- func (k Keeper) GetGroup(ctx sdk.Context, groupAccount string) (val types.Group, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetProposal(ctx sdk.Context, id uint64) (val types.Proposal, found bool)
- func (k Keeper) GetVote(ctx sdk.Context, proposalId uint64, voter string) (val types.Vote, found bool)
- func (k Keeper) Group(goCtx context.Context, req *types.QueryGetGroupRequest) (*types.QueryGetGroupResponse, error)
- func (k Keeper) GroupAll(goCtx context.Context, req *types.QueryAllGroupRequest) (*types.QueryAllGroupResponse, error)
- func (k Keeper) IterateProposals(ctx sdk.Context, f func(report types.Proposal) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Proposal(goCtx context.Context, req *types.QueryGetProposalRequest) (*types.QueryGetProposalResponse, error)
- func (k Keeper) ProposalAll(goCtx context.Context, req *types.QueryAllProposalRequest) (*types.QueryAllProposalResponse, error)
- func (k Keeper) RemoveGroup(ctx sdk.Context, groupAccount string)
- func (k Keeper) RemoveProposal(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveVote(ctx sdk.Context, proposalId uint64, voter string)
- func (k Keeper) SetGroup(ctx sdk.Context, group types.Group)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetProposal(ctx sdk.Context, proposal types.Proposal)
- func (k Keeper) SetVote(ctx sdk.Context, vote types.Vote)
- func (k Keeper) Tally(ctx sdk.Context, proposalId uint64) *types.TallyResult
- func (k Keeper) Vote(goCtx context.Context, req *types.QueryGetVoteRequest) (*types.QueryGetVoteResponse, error)
- func (k Keeper) VoteAll(goCtx context.Context, req *types.QueryAllVoteRequest) (*types.QueryAllVoteResponse, error)
- func (k Keeper) VotesByProposal(goCtx context.Context, req *types.QueryVotesByProposalRequest) (*types.QueryVotesByProposalResponse, 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, storeKey, memKey storetypes.StoreKey, router *baseapp.MsgServiceRouter, accountKeeper types.AccountKeeper, ) *Keeper
func (Keeper) EndBlocker ¶
func (Keeper) ExecuteProposal ¶
func (Keeper) GetAllGroup ¶
GetAllGroup returns all groups
func (Keeper) GetAllProposal ¶
GetAllProposal returns all proposals
func (Keeper) GetAllVote ¶
GetAllVote returns all votes
func (Keeper) GetAllVoteByProposalId ¶
GetAllVoteByProposalId returns all votes by proposal id
func (Keeper) GetProposal ¶
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 (k Keeper) Group(goCtx context.Context, req *types.QueryGetGroupRequest) (*types.QueryGetGroupResponse, error)
func (Keeper) GroupAll ¶
func (k Keeper) GroupAll(goCtx context.Context, req *types.QueryAllGroupRequest) (*types.QueryAllGroupResponse, error)
func (Keeper) IterateProposals ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) Proposal ¶
func (k Keeper) Proposal(goCtx context.Context, req *types.QueryGetProposalRequest) (*types.QueryGetProposalResponse, error)
func (Keeper) ProposalAll ¶
func (k Keeper) ProposalAll(goCtx context.Context, req *types.QueryAllProposalRequest) (*types.QueryAllProposalResponse, error)
func (Keeper) RemoveGroup ¶
RemoveGroup removes a group from the store
func (Keeper) RemoveProposal ¶
RemoveProposal removes a proposal from the store
func (Keeper) RemoveVote ¶
RemoveVote removes a vote from the store
func (Keeper) SetProposal ¶
SetProposal set a specific proposal in the store from its id
func (Keeper) Vote ¶
func (k Keeper) Vote(goCtx context.Context, req *types.QueryGetVoteRequest) (*types.QueryGetVoteResponse, error)
func (Keeper) VoteAll ¶
func (k Keeper) VoteAll(goCtx context.Context, req *types.QueryAllVoteRequest) (*types.QueryAllVoteResponse, error)
func (Keeper) VotesByProposal ¶
func (k Keeper) VotesByProposal(goCtx context.Context, req *types.QueryVotesByProposalRequest) (*types.QueryVotesByProposalResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.