proposals

package
v0.0.32 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL