Documentation ¶
Index ¶
- func DetermineProposalOutcome(keepers core.Keepers, proposal state.Proposal, repo *state.Repository, ...) state.ProposalOutcome
- func GetProposalOutcome(tickmgr tickettypes.TicketManager, prop state.Proposal, repo *state.Repository) state.ProposalOutcome
- func MakeProposal(creatorAddress string, repo *state.Repository, id string, ...) *state.RepoProposal
- func MaybeApplyProposal(args *ApplyProposalArgs) (bool, error)
- func MaybeProcessProposalFee(outcome state.ProposalOutcome, keepers core.Keepers, proposal state.Proposal, ...) error
- type ApplyProposalArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetermineProposalOutcome ¶
func DetermineProposalOutcome( keepers core.Keepers, proposal state.Proposal, repo *state.Repository, _ uint64) state.ProposalOutcome
DetermineProposalOutcome determines the outcome of the proposal votes
func GetProposalOutcome ¶
func GetProposalOutcome(tickmgr tickettypes.TicketManager, prop state.Proposal, repo *state.Repository) state.ProposalOutcome
GetProposalOutcome returns the current outcome of a proposal whose voters are only network stakeholders; If the proposal requires a proposer max join height, only stakeholders whose tickets became mature before the proposer max join height
func MakeProposal ¶
func MakeProposal( creatorAddress string, repo *state.Repository, id string, proposalFee util.String, chainHeight uint64) *state.RepoProposal
func MaybeApplyProposal ¶
func MaybeApplyProposal(args *ApplyProposalArgs) (bool, error)
MaybeApplyProposal attempts to apply the action of a proposal
func MaybeProcessProposalFee ¶
func MaybeProcessProposalFee( outcome state.ProposalOutcome, keepers core.Keepers, proposal state.Proposal, repo *state.Repository) error
MaybeProcessProposalFee determines and execute proposal fee refund or distribution
Types ¶
type ApplyProposalArgs ¶
type ApplyProposalArgs struct { Keepers core.Keepers Proposal state.Proposal Repo *state.Repository ChainHeight uint64 Contracts []core.SystemContract }
Click to show internal directories.
Click to hide internal directories.