random

package
v0.0.0-...-ef0885f Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryRandomExec

func QueryRandomExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	requestID string,
	extraArgs ...string,
) *randomtypes.Random

QueryRandomExec queries the random number for the given request ID using the provided network, client context, and optional extra arguments.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - requestID: The ID of the random request. - extraArgs: Optional extra arguments.

Returns: - *randomtypes.Random: The response containing the queried random number.

func QueryRandomRequestQueueExec

func QueryRandomRequestQueueExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	genHeight string,
	extraArgs ...string,
) *randomtypes.QueryRandomRequestQueueResponse

QueryRandomRequestQueueExec queries the random request queue for a given height using the provided network, client context, and optional extra arguments.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - genHeight: The height at which to query the random request queue. - extraArgs: Optional extra arguments.

Returns: - *randomtypes.QueryRandomRequestQueueResponse: The response containing the queried random request queue.

func RequestRandomExec

func RequestRandomExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	from string,
	extraArgs ...string,
) *simapp.ResponseTx

RequestRandomExec creates a random request execution message.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - from: The sender address. - extraArgs: Additional arguments. Returns a pointer to a simapp.ResponseTx.

Types

type QueryTestSuite

type QueryTestSuite struct {
	e2e.TestSuite
}

QueryTestSuite is a suite of end-to-end tests for the nft module

func (*QueryTestSuite) SetupSuite

func (s *QueryTestSuite) SetupSuite()

SetupSuite sets up test suite

func (*QueryTestSuite) TestQueryCmd

func (s *QueryTestSuite) TestQueryCmd()

TestQueryCmd tests all query command in the nft module

type TxTestSuite

type TxTestSuite struct {
	e2e.TestSuite
}

TxTestSuite is a suite of end-to-end tests for the nft module

func (*TxTestSuite) SetupSuite

func (s *TxTestSuite) SetupSuite()

SetupSuite sets up test suite

func (*TxTestSuite) TestTxCmd

func (s *TxTestSuite) TestTxCmd()

TestTxCmd tests all tx command in the nft module

Jump to

Keyboard shortcuts

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