cli

package
v0.50.5 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 439

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckTxCode added in v0.47.0

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 added in v0.47.0

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 added in v0.47.0

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

Types

type MockCometRPC added in v0.50.0

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

func NewMockCometRPC added in v0.50.0

func NewMockCometRPC(respQuery abci.ResponseQuery) MockCometRPC

NewMockCometRPC returns a mock CometBFT RPC implementation. It is used for CLI testing.

func (MockCometRPC) ABCIQueryWithOptions added in v0.50.0

func (MockCometRPC) BroadcastTxSync added in v0.50.0

Jump to

Keyboard shortcuts

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