testutil

package
v0.46.13-rc.0 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: Apache-2.0 Imports: 34 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryAccountExec added in v0.40.1

func QueryAccountExec(clientCtx client.Context, address fmt.Stringer, extraArgs ...string) (testutil.BufferWriter, error)

func TestGetBroadcastCommandOfflineFlag added in v0.43.0

func TestGetBroadcastCommandOfflineFlag(t *testing.T)

func TestGetBroadcastCommandWithoutOfflineFlag added in v0.43.0

func TestGetBroadcastCommandWithoutOfflineFlag(t *testing.T)

func TxAuxToFeeExec added in v0.46.0

func TxAuxToFeeExec(clientCtx client.Context, filename string, extraArgs ...string) (testutil.BufferWriter, error)

TxAuxToFeeExec executes `GetAuxToFeeCommand` cli command with given args.

func TxBroadcastExec added in v0.40.0

func TxBroadcastExec(clientCtx client.Context, filename string, extraArgs ...string) (testutil.BufferWriter, error)

func TxDecodeExec added in v0.40.0

func TxDecodeExec(clientCtx client.Context, encodedTx string, extraArgs ...string) (testutil.BufferWriter, error)

func TxEncodeExec added in v0.40.0

func TxEncodeExec(clientCtx client.Context, filename string, extraArgs ...string) (testutil.BufferWriter, error)

func TxMultiSignBatchExec added in v0.41.4

func TxMultiSignBatchExec(clientCtx client.Context, filename string, from string, sigFile1 string, sigFile2 string, extraArgs ...string) (testutil.BufferWriter, error)

func TxMultiSignExec added in v0.40.0

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

func TxSignBatchExec added in v0.40.0

func TxSignBatchExec(clientCtx client.Context, from fmt.Stringer, filename string, extraArgs ...string) (testutil.BufferWriter, error)

func TxSignExec added in v0.40.0

func TxSignExec(clientCtx client.Context, from fmt.Stringer, filename string, extraArgs ...string) (testutil.BufferWriter, error)

func TxValidateSignaturesExec added in v0.40.0

func TxValidateSignaturesExec(clientCtx client.Context, filename string) (testutil.BufferWriter, error)

Types

type IntegrationTestSuite added in v0.43.0

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

func NewIntegrationTestSuite added in v0.43.0

func NewIntegrationTestSuite(cfg network.Config) *IntegrationTestSuite

func (*IntegrationTestSuite) SetupSuite added in v0.43.0

func (s *IntegrationTestSuite) SetupSuite()

func (*IntegrationTestSuite) TearDownSuite added in v0.43.0

func (s *IntegrationTestSuite) TearDownSuite()

func (*IntegrationTestSuite) TestAuxSigner added in v0.46.0

func (s *IntegrationTestSuite) TestAuxSigner()

func (*IntegrationTestSuite) TestAuxToFeeWithTips added in v0.46.0

func (s *IntegrationTestSuite) TestAuxToFeeWithTips()

func (*IntegrationTestSuite) TestCLIEncode added in v0.43.0

func (s *IntegrationTestSuite) TestCLIEncode()

func (*IntegrationTestSuite) TestCLIMultisign added in v0.43.0

func (s *IntegrationTestSuite) TestCLIMultisign()

func (*IntegrationTestSuite) TestCLIMultisignInsufficientCosigners added in v0.43.0

func (s *IntegrationTestSuite) TestCLIMultisignInsufficientCosigners()

func (*IntegrationTestSuite) TestCLIMultisignSortSignatures added in v0.43.0

func (s *IntegrationTestSuite) TestCLIMultisignSortSignatures()

func (*IntegrationTestSuite) TestCLIQueryTxCmdByEvents added in v0.43.0

func (s *IntegrationTestSuite) TestCLIQueryTxCmdByEvents()

func (*IntegrationTestSuite) TestCLIQueryTxCmdByHash added in v0.43.0

func (s *IntegrationTestSuite) TestCLIQueryTxCmdByHash()

func (*IntegrationTestSuite) TestCLIQueryTxsCmdByEvents added in v0.44.0

func (s *IntegrationTestSuite) TestCLIQueryTxsCmdByEvents()

func (*IntegrationTestSuite) TestCLISendGenerateSignAndBroadcast added in v0.43.0

func (s *IntegrationTestSuite) TestCLISendGenerateSignAndBroadcast()

func (*IntegrationTestSuite) TestCLISignAminoJSON added in v0.43.0

func (s *IntegrationTestSuite) TestCLISignAminoJSON()

func (*IntegrationTestSuite) TestCLISignBatch added in v0.43.0

func (s *IntegrationTestSuite) TestCLISignBatch()

func (*IntegrationTestSuite) TestCLISignGenOnly added in v0.46.0

func (s *IntegrationTestSuite) TestCLISignGenOnly()

func (*IntegrationTestSuite) TestCLIValidateSignatures added in v0.43.0

func (s *IntegrationTestSuite) TestCLIValidateSignatures()

func (*IntegrationTestSuite) TestCliGetAccountAddressByID added in v0.46.0

func (s *IntegrationTestSuite) TestCliGetAccountAddressByID()

func (*IntegrationTestSuite) TestGetAccountCmd added in v0.43.0

func (s *IntegrationTestSuite) TestGetAccountCmd()

func (*IntegrationTestSuite) TestGetAccountsCmd added in v0.43.0

func (s *IntegrationTestSuite) TestGetAccountsCmd()

func (*IntegrationTestSuite) TestMultisignBatch added in v0.43.0

func (s *IntegrationTestSuite) TestMultisignBatch()

func (*IntegrationTestSuite) TestQueryModuleAccountByNameCmd added in v0.45.10

func (s *IntegrationTestSuite) TestQueryModuleAccountByNameCmd()

func (*IntegrationTestSuite) TestQueryModuleAccountsCmd added in v0.46.4

func (s *IntegrationTestSuite) TestQueryModuleAccountsCmd()

func (*IntegrationTestSuite) TestQueryParamsCmd added in v0.43.0

func (s *IntegrationTestSuite) TestQueryParamsCmd()

func (*IntegrationTestSuite) TestSignBatchMultisig added in v0.43.0

func (s *IntegrationTestSuite) TestSignBatchMultisig()

func (*IntegrationTestSuite) TestSignWithMultiSignersAminoJSON added in v0.43.0

func (s *IntegrationTestSuite) TestSignWithMultiSignersAminoJSON()

TestSignWithMultiSignersAminoJSON tests the case where a transaction with 2 messages which has to be signed with 2 different keys. Sign and append the signatures using the CLI with Amino signing mode. Finally, send the transaction to the blockchain.

func (*IntegrationTestSuite) TestSignWithMultisig added in v0.45.2

func (s *IntegrationTestSuite) TestSignWithMultisig()

func (*IntegrationTestSuite) TestTxWithoutPublicKey added in v0.43.0

func (s *IntegrationTestSuite) TestTxWithoutPublicKey()

TestTxWithoutPublicKey makes sure sending a proto tx message without the public key doesn't cause any error in the RPC layer (broadcast). See https://github.com/cosmos/cosmos-sdk/issues/7585 for more details.

Jump to

Keyboard shortcuts

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