Documentation
¶
Index ¶
- func ApproveProposal(tf factory.BaseTxFactory, network exrpintegration.Network, ...) error
- func NewValidatorFlags(n int, overrides ...ValidatorFlagOverride) []cmtproto.BlockIDFlag
- func SubmitAndAwaitProposalResolution(tf factory.BaseTxFactory, network exrpintegration.Network, keys []keyring.Key, ...) (*govv1.Proposal, error)
- func SubmitLegacyProposal(tf factory.BaseTxFactory, network exrpintegration.Network, ...) (uint64, error)
- func SubmitProposal(tf factory.BaseTxFactory, network exrpintegration.Network, ...) (uint64, error)
- func VoteOnProposal(tf factory.BaseTxFactory, voterPriv cryptotypes.PrivKey, proposalID uint64, ...) (abcitypes.ExecTxResult, error)
- type ValidatorFlagOverride
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproveProposal ¶
func ApproveProposal(tf factory.BaseTxFactory, network exrpintegration.Network, proposerPriv cryptotypes.PrivKey, proposalID uint64) error
ApproveProposal is a helper function to vote 'yes' for it and wait till it passes.
func NewValidatorFlags ¶
func NewValidatorFlags(n int, overrides ...ValidatorFlagOverride) []cmtproto.BlockIDFlag
func SubmitLegacyProposal ¶
func SubmitLegacyProposal(tf factory.BaseTxFactory, network exrpintegration.Network, proposerPriv cryptotypes.PrivKey, proposal govv1beta1.Content) (uint64, error)
SubmitLegacyProposal is a helper function to submit a governance proposal and return the proposal ID.
func SubmitProposal ¶
func SubmitProposal(tf factory.BaseTxFactory, network exrpintegration.Network, proposerPriv cryptotypes.PrivKey, title string, msgs ...sdk.Msg) (uint64, error)
SubmitProposal is a helper function to submit a governance proposal and return the proposal ID.
func VoteOnProposal ¶
func VoteOnProposal(tf factory.BaseTxFactory, voterPriv cryptotypes.PrivKey, proposalID uint64, option govv1.VoteOption) (abcitypes.ExecTxResult, error)
VoteOnProposal is a helper function to vote on a governance proposal given the private key of the voter and the option to vote.
Types ¶
type ValidatorFlagOverride ¶
type ValidatorFlagOverride struct {
Index int
Flag cmtproto.BlockIDFlag
}
func NewValidatorFlagOverride ¶
func NewValidatorFlagOverride(index int, flag cmtproto.BlockIDFlag) ValidatorFlagOverride
Click to show internal directories.
Click to hide internal directories.