utils

package
v10.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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