oracle

package
v0.0.0-...-903540d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFeedExec

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

CreateFeedExec creates a feed execution message.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - from: The sender address. - extraArgs: Additional arguments. Returns a response transaction.

func EditFeedExec

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

EditFeedExec creates a feed execution message.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - from: The sender address. - feedName: The name of the feed. - extraArgs: Additional arguments.

Returns: - A pointer to a simapp.ResponseTx.

func PauseFeedExec

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

PauseFeedExec creates a transaction to pause a feed.

t: The testing context. network: The simulation network. clientCtx: The client context. from: The sender address. feedName: The name of the feed. extraArgs: Additional arguments. Returns a pointer to a simapp.ResponseTx.

func QueryFeedExec

func QueryFeedExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	feedName string,
	extraArgs ...string,
) *oracletypes.FeedContext

QueryFeedExec creates a transaction to query a feed.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - feedName: The name of the feed. - extraArgs: Additional arguments. Returns a pointer to an oracletypes.FeedContext.

func QueryFeedValueExec

func QueryFeedValueExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	feedName string,
	extraArgs ...string,
) *oracletypes.QueryFeedValueResponse

QueryFeedValueExec creates a transaction to query a feed value.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - feedName: The name of the feed. - extraArgs: Additional arguments. Returns a pointer to an oracletypes.QueryFeedValueResponse.

func QueryFeedsExec

func QueryFeedsExec(t *testing.T,
	network simapp.Network,
	clientCtx client.Context,
	extraArgs ...string,
) *oracletypes.QueryFeedsResponse

QueryFeedsExec queries the feeds using the provided network, client context, and optional extra arguments.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - extraArgs: Optional extra arguments.

Returns: - *oracletypes.QueryFeedsResponse: The response containing the queried feeds.

func StartFeedExec

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

StartFeedExec starts a feed execution message.

Parameters: - t: The testing context. - network: The simulation network. - clientCtx: The client context. - from: The sender address. - feedName: The name of the feed. - 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) 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) 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