Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + const ModuleName + const OptionAbstain + const OptionEmpty + const OptionNo + const OptionNoWithVeto + const OptionYes + const ProposalTypeNil + const ProposalTypeParameterChange + const ProposalTypeText + const StatusDepositPeriod + const StatusFailed + const StatusNil + const StatusPassed + const StatusRejected + const StatusVotingPeriod + func RegisterCodec(cdc *codec.Codec) + type Deposit struct + Amount sdk.Coins + Depositor sdk.AccAddress + ProposalID uint64 + type DepositParams struct + MaxDepositPeriod time.Duration + MinDeposit sdk.Coins + type DepositWithMetadata struct + Deposit Deposit + ProposalID uint64 + type Deposits []Deposit + type GenesisState struct + DepositParams DepositParams + Deposits []DepositWithMetadata + Proposals []Proposal + StartingProposalID uint64 + TallyParams TallyParams + Votes []VoteWithMetadata + VotingParams VotingParams + type Proposal struct + DepositEndTime time.Time + FinalTallyResult TallyResult + ProposalID uint64 + Status ProposalStatus + SubmitTime time.Time + TotalDeposit sdk.Coins + VotingEndTime time.Time + VotingStartTime time.Time + type ProposalContent interface + GetDescription func() string + GetTitle func() string + ProposalType func() ProposalKind + type ProposalKind byte + func ProposalTypeFromString(str string) (ProposalKind, error) + func (pt *ProposalKind) Unmarshal(data []byte) error + func (pt *ProposalKind) UnmarshalJSON(data []byte) error + func (pt ProposalKind) Marshal() ([]byte, error) + func (pt ProposalKind) MarshalJSON() ([]byte, error) + func (pt ProposalKind) String() string + type ProposalQueue []uint64 + type ProposalStatus byte + func ProposalStatusFromString(str string) (ProposalStatus, error) + func (status *ProposalStatus) Unmarshal(data []byte) error + func (status *ProposalStatus) UnmarshalJSON(data []byte) error + func (status ProposalStatus) Marshal() ([]byte, error) + func (status ProposalStatus) MarshalJSON() ([]byte, error) + func (status ProposalStatus) String() string + type Proposals []Proposal + type TallyParams struct + Quorum sdk.Dec + Threshold sdk.Dec + Veto sdk.Dec + type TallyResult struct + Abstain sdk.Int + No sdk.Int + NoWithVeto sdk.Int + Yes sdk.Int + type TextProposal struct + Description string + Title string + func (tp TextProposal) GetDescription() string + func (tp TextProposal) GetTitle() string + func (tp TextProposal) ProposalType() ProposalKind + type Vote struct + Option VoteOption + ProposalID uint64 + Voter sdk.AccAddress + type VoteOption byte + func VoteOptionFromString(str string) (VoteOption, error) + func (vo *VoteOption) Unmarshal(data []byte) error + func (vo *VoteOption) UnmarshalJSON(data []byte) error + func (vo VoteOption) Marshal() ([]byte, error) + func (vo VoteOption) MarshalJSON() ([]byte, error) + func (vo VoteOption) String() string + type VoteWithMetadata struct + ProposalID uint64 + Vote Vote + type Votes []Vote + type VotingParams struct + VotingPeriod time.Duration