testutil

package
v0.43.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgDeposit

func MsgDeposit(clientCtx client.Context, from, id, deposit string, extraArgs ...string) (testutil.BufferWriter, error)

func MsgSubmitProposal

func MsgSubmitProposal(clientCtx client.Context, from, title, description, proposalType string, extraArgs ...string) (testutil.BufferWriter, error)

MsgSubmitProposal creates a tx for submit proposal

func MsgVote

func MsgVote(clientCtx client.Context, from, id, vote string, extraArgs ...string) (testutil.BufferWriter, error)

MsgVote votes for a proposal

Types

type DepositTestSuite

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

func NewDepositTestSuite

func NewDepositTestSuite(cfg network.Config) *DepositTestSuite

func (*DepositTestSuite) SetupSuite

func (s *DepositTestSuite) SetupSuite()

func (*DepositTestSuite) TearDownSuite

func (s *DepositTestSuite) TearDownSuite()

func (*DepositTestSuite) TestQueryDepositsInitialDeposit

func (s *DepositTestSuite) TestQueryDepositsInitialDeposit()

func (*DepositTestSuite) TestQueryDepositsWithoutInitialDeposit

func (s *DepositTestSuite) TestQueryDepositsWithoutInitialDeposit()

func (*DepositTestSuite) TestQueryProposalNotEnoughDeposits

func (s *DepositTestSuite) TestQueryProposalNotEnoughDeposits()

func (*DepositTestSuite) TestRejectedProposalDeposits

func (s *DepositTestSuite) TestRejectedProposalDeposits()

Jump to

Keyboard shortcuts

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