utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveProposal

func ApproveProposal(tf factory.TxFactory, network network.Network, proposerPriv cryptotypes.PrivKey, proposalID uint64) error

ApproveProposal is a helper function to vote 'yes' for it and wait till it passes.

func CheckTxTopics

func CheckTxTopics(res abcitypes.ExecTxResult, expectedTopics []string) error

CheckTxTopics checks if all expected topics are present in the transaction response

func DecodeContractCallResponse

func DecodeContractCallResponse(response interface{}, callArgs testutiltypes.CallArgs, res abcitypes.ExecTxResult) error

DecodeContractCallResponse decodes the response of a contract call query

func RegisterMultistakingEVMBondDenom added in v1.4.0

func RegisterMultistakingEVMBondDenom(input UpdateParamsInput, contractAddr string, weight math.LegacyDec, proposer sdk.AccAddress) error

func RemoveMultistakingBondDenom added in v1.4.0

func RemoveMultistakingBondDenom(input UpdateParamsInput, denom string, proposer sdk.AccAddress) error

func SubmitLegacyProposal

func SubmitLegacyProposal(tf factory.TxFactory, network network.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.TxFactory, network network.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 UpdateEvmParams

func UpdateEvmParams(input UpdateParamsInput) error

UpdateEvmParams helper function to update the EVM module parameters It submits an update params proposal, votes for it, and waits till it passes

func VoteOnProposal

func VoteOnProposal(tf factory.TxFactory, 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 UpdateParamsInput

type UpdateParamsInput struct {
	Tf      factory.TxFactory
	Network network.Network
	Pk      cryptotypes.PrivKey
	Params  interface{}
}

Jump to

Keyboard shortcuts

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