testutil

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgAdvanceEpochExec

func MsgAdvanceEpochExec(clientCtx client.Context, from string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgAdvanceEpochExec creates a transaction to advance epoch by 1.

func MsgCreateFixedAmountPlanExec

func MsgCreateFixedAmountPlanExec(clientCtx client.Context, from string, file string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgCreateFixedAmountPlanExec creates a transaction for creating a private fixed amount plan.

func MsgSendExec

func MsgSendExec(clientCtx client.Context, from string, to string, amount string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgSendExec creates a transaction to transfer coins.

func MsgStakeExec

func MsgStakeExec(clientCtx client.Context, from string, stakingCoins string,
	extraArgs ...string) (testutil.BufferWriter, error)

MsgStakeExec creates a transaction for staking coin.

Types

type IntegrationTestSuite

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

func (*IntegrationTestSuite) SetupTest

func (s *IntegrationTestSuite) SetupTest()

SetupTest creates a new network for _each_ integration test. We create a new network for each test because there are some state modifications that are needed to be made in order to make useful queries. However, we don't want these state changes to be present in other tests.

func (*IntegrationTestSuite) TearDownTest

func (s *IntegrationTestSuite) TearDownTest()

TearDownTest cleans up the current test network after each test in the suite.

func (*IntegrationTestSuite) TestNewCreateFixedAmountPlanCmd

func (s *IntegrationTestSuite) TestNewCreateFixedAmountPlanCmd()

func (*IntegrationTestSuite) TestNewCreateRatioPlanCmd

func (s *IntegrationTestSuite) TestNewCreateRatioPlanCmd()

func (*IntegrationTestSuite) TestNewHarvestCmd

func (s *IntegrationTestSuite) TestNewHarvestCmd()

func (*IntegrationTestSuite) TestNewStakeCmd

func (s *IntegrationTestSuite) TestNewStakeCmd()

func (*IntegrationTestSuite) TestNewUnstakeCmd

func (s *IntegrationTestSuite) TestNewUnstakeCmd()

type QueryCmdTestSuite

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

func (*QueryCmdTestSuite) SetupSuite

func (s *QueryCmdTestSuite) SetupSuite()

func (*QueryCmdTestSuite) TearDownSuite

func (s *QueryCmdTestSuite) TearDownSuite()

func (*QueryCmdTestSuite) TestCmdQueryCurrentEpochDays

func (s *QueryCmdTestSuite) TestCmdQueryCurrentEpochDays()

func (*QueryCmdTestSuite) TestCmdQueryParams

func (s *QueryCmdTestSuite) TestCmdQueryParams()

func (*QueryCmdTestSuite) TestCmdQueryPlan

func (s *QueryCmdTestSuite) TestCmdQueryPlan()

func (*QueryCmdTestSuite) TestCmdQueryPlans

func (s *QueryCmdTestSuite) TestCmdQueryPlans()

func (*QueryCmdTestSuite) TestCmdQueryPosition

func (s *QueryCmdTestSuite) TestCmdQueryPosition()

func (*QueryCmdTestSuite) TestCmdQueryQueuedStakings

func (s *QueryCmdTestSuite) TestCmdQueryQueuedStakings()

func (*QueryCmdTestSuite) TestCmdQueryRewards

func (s *QueryCmdTestSuite) TestCmdQueryRewards()

func (*QueryCmdTestSuite) TestCmdQueryStakings

func (s *QueryCmdTestSuite) TestCmdQueryStakings()

func (*QueryCmdTestSuite) TestCmdQueryTotalStakings

func (s *QueryCmdTestSuite) TestCmdQueryTotalStakings()

func (*QueryCmdTestSuite) TestCmdQueryUnharvestedRewards

func (s *QueryCmdTestSuite) TestCmdQueryUnharvestedRewards()

Jump to

Keyboard shortcuts

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