gov

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// TestProposalMsgs are msgs used on a proposal.
	TestProposalMsgs = []sdk.Msg{
		banktypes.NewMsgSend(govAcct, addr, sdk.NewCoins(sdk.NewCoin(testconstants.ExampleAttoDenom, math.NewInt(1000)))),
	}
)

Functions

func TestPrecompileIntegrationTestSuite

func TestPrecompileIntegrationTestSuite(t *testing.T, create network.CreateEvmApp, options ...network.ConfigOption)

Types

type CallsData

type CallsData struct {
	// contains filtered or unexported fields
}

CallsData is a helper struct to hold the addresses and ABIs for the different contract instances used in the integration tests.

type PrecompileTestSuite

type PrecompileTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewPrecompileTestSuite

func NewPrecompileTestSuite(create network.CreateEvmApp, options ...network.ConfigOption) *PrecompileTestSuite

func (*PrecompileTestSuite) SetupTest

func (s *PrecompileTestSuite) SetupTest()

func (*PrecompileTestSuite) TestGetDeposit

func (s *PrecompileTestSuite) TestGetDeposit()

func (*PrecompileTestSuite) TestGetDeposits

func (s *PrecompileTestSuite) TestGetDeposits()

func (*PrecompileTestSuite) TestGetParams

func (s *PrecompileTestSuite) TestGetParams()

func (*PrecompileTestSuite) TestGetProposal

func (s *PrecompileTestSuite) TestGetProposal()

func (*PrecompileTestSuite) TestGetProposals

func (s *PrecompileTestSuite) TestGetProposals()

func (*PrecompileTestSuite) TestGetTallyResult

func (s *PrecompileTestSuite) TestGetTallyResult()

func (*PrecompileTestSuite) TestGetVote

func (s *PrecompileTestSuite) TestGetVote()

func (*PrecompileTestSuite) TestGetVotes

func (s *PrecompileTestSuite) TestGetVotes()

func (*PrecompileTestSuite) TestIsTransaction

func (s *PrecompileTestSuite) TestIsTransaction()

func (*PrecompileTestSuite) TestRun

func (s *PrecompileTestSuite) TestRun()

TestRun tests the precompile's Run method.

func (*PrecompileTestSuite) TestVote

func (s *PrecompileTestSuite) TestVote()

func (*PrecompileTestSuite) TestVoteEvent

func (s *PrecompileTestSuite) TestVoteEvent()

func (*PrecompileTestSuite) TestVoteWeighted

func (s *PrecompileTestSuite) TestVoteWeighted()

func (*PrecompileTestSuite) TestVoteWeightedEvent

func (s *PrecompileTestSuite) TestVoteWeightedEvent()

Jump to

Keyboard shortcuts

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