Documentation
¶
Index ¶
- func QueryRandomExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *randomtypes.Random
- func QueryRandomRequestQueueExec(t *testing.T, network simapp.Network, clientCtx client.Context, ...) *randomtypes.QueryRandomRequestQueueResponse
- func RequestRandomExec(t *testing.T, network simapp.Network, clientCtx client.Context, from string, ...) *simapp.ResponseTx
- type QueryTestSuite
- type TxTestSuite
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 ¶
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 ¶
TxTestSuite is a suite of end-to-end tests for the nft module
func (*TxTestSuite) TestTxCmd ¶
func (s *TxTestSuite) TestTxCmd()
TestTxCmd tests all tx command in the nft module