cli

package
v0.48.86 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 17 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTxCode

func CheckTxCode(network *network.Network, clientCtx client.Context, txHash string, expectedCode uint32) error

CheckTxCode verifies that the transaction result returns a specific code Takes a network, wait for two blocks and fetch the transaction from its hash

func ExecTestCLICmd

func ExecTestCLICmd(clientCtx client.Context, cmd *cobra.Command, extraArgs []string) (testutil.BufferWriter, error)

ExecTestCLICmd builds the client context, mocks the output and executes the command.

func GetTxResponse

func GetTxResponse(network *network.Network, clientCtx client.Context, txHash string) (sdk.TxResponse, error)

GetTxResponse returns queries the transaction response of a transaction from its hash Takes a network, wait for two blocks and fetch the transaction from its hash

func MsgSendExec

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

func QueryBalancesExec

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

Types

type MockTendermintRPC

type MockTendermintRPC struct {
	rpcclientmock.Client
	// contains filtered or unexported fields
}

func NewMockTendermintRPC

func NewMockTendermintRPC(respQuery abci.ResponseQuery) MockTendermintRPC

NewMockTendermintRPC returns a mock TendermintRPC implementation. It is used for CLI testing.

func (MockTendermintRPC) ABCIQueryWithOptions

func (MockTendermintRPC) BroadcastTxSync

Jump to

Keyboard shortcuts

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