Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2019 Changes in this version + const CodeInvalidContent + const DefaultCodespace + const MaxDescriptionLength + const MaxTitleLength + const ModuleName + const ProposalTypeSoftwareUpgrade + const ProposalTypeText + const RouterKey + func ErrInvalidProposalContent(cs sdk.CodespaceType, msg string) sdk.Error + func RegisterCodec(cdc *codec.Codec) + func ValidateAbstract(codespace sdk.CodespaceType, c Content) sdk.Error + type Content interface + GetDescription func() string + GetTitle func() string + ProposalRoute func() string + ProposalType func() string + String func() string + ValidateBasic func() sdk.Error + func NewSoftwareUpgradeProposal(title, description string) Content + 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 SoftwareUpgradeProposal struct + Description string + Title string + func (sup SoftwareUpgradeProposal) GetDescription() string + func (sup SoftwareUpgradeProposal) GetTitle() string + func (sup SoftwareUpgradeProposal) ProposalRoute() string + func (sup SoftwareUpgradeProposal) ProposalType() string + func (sup SoftwareUpgradeProposal) String() string + func (sup SoftwareUpgradeProposal) ValidateBasic() sdk.Error + 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() sdk.Error