utils

package
v9.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 SubmitAndAwaitProposalResolution

func SubmitAndAwaitProposalResolution(tf factory.BaseTxFactory, network exrpintegration.Network, keys []keyring.Key, title string, msgs ...sdk.Msg) (*govv1.Proposal, error)

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

Jump to

Keyboard shortcuts

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