Versions in this module Expand all Collapse all v1 v1.0.0 May 14, 2020 Changes in this version + const MaxDescriptionLength + const MaxTitleLength + const ModuleName + const ProposalTypeText + const RouterKey + func ErrInvalidProposalContent(msg string) error + func RegisterCodec(cdc *codec.Codec) + func ValidateAbstract(c Content) error + type Content interface + GetDescription func() string + GetTitle func() string + ProposalRoute func() string + ProposalType func() string + String func() string + ValidateBasic func() error + func NewTextProposal(title, description string) Content + type GenesisState struct + DepositParams v034gov.DepositParams + Deposits v034gov.Deposits + Proposals []Proposal + StartingProposalID uint64 + TallyParams v034gov.TallyParams + Votes v034gov.Votes + VotingParams v034gov.VotingParams + func Migrate(oldGenState v034gov.GenesisState) GenesisState + func NewGenesisState(startingProposalID uint64, deposits v034gov.Deposits, votes v034gov.Votes, ...) GenesisState + type Proposal struct + DepositEndTime time.Time + FinalTallyResult v034gov.TallyResult + ProposalID uint64 + Status v034gov.ProposalStatus + SubmitTime time.Time + TotalDeposit sdk.Coins + VotingEndTime time.Time + VotingStartTime time.Time + type ProposalQueue []uint64 + type Proposals []Proposal + type TextProposal struct + Description string + Title string + func (tp TextProposal) GetDescription() string + func (tp TextProposal) GetTitle() string + func (tp TextProposal) ProposalRoute() string + func (tp TextProposal) ProposalType() string + func (tp TextProposal) String() string + func (tp TextProposal) ValidateBasic() error v1.0.0-playground Jul 8, 2020