testutil

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgAddAllowedBidderExec

func MsgAddAllowedBidderExec(clientCtx client.Context,
	from string,
	auctionId uint64,
	maxBidAmt sdk.Int,
	extraAtgs ...string,
) (testutil.BufferWriter, error)

MsgAddAllowedBidderExec creates a transaction for adding an allowed bidder.

func MsgCreateBatchAuctionExec

func MsgCreateBatchAuctionExec(clientCtx client.Context,
	from string,
	file string,
	extraArgs ...string,
) (testutil.BufferWriter, error)

MsgCreateBatchAuctionExec creates a transaction for creating a batch auction.

func MsgCreateFixedPriceAuctionExec

func MsgCreateFixedPriceAuctionExec(clientCtx client.Context,
	from string,
	file string,
	extraArgs ...string,
) (testutil.BufferWriter, error)

MsgCreateFixedPriceAuctionExec creates a transaction for creating a fixed price auction.

func MsgPlaceBidExec

func MsgPlaceBidExec(clientCtx client.Context,
	from string,
	auctionId uint64,
	bidType string,
	price sdk.Dec,
	coin sdk.Coin,
	extraArgs ...string,
) (testutil.BufferWriter, error)

MsgPlaceBidExec creates a transaction for placing a bid.

func NewAppConstructor

func NewAppConstructor(encodingCfg cmd.EncodingConfig) network.AppConstructor

Types

type QueryCmdTestSuite

type QueryCmdTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*QueryCmdTestSuite) SetupTest

func (s *QueryCmdTestSuite) SetupTest()

func (*QueryCmdTestSuite) TearDownSuite

func (s *QueryCmdTestSuite) TearDownSuite()

func (*QueryCmdTestSuite) TestNewQueryParamsCmd

func (s *QueryCmdTestSuite) TestNewQueryParamsCmd()

type TxCmdTestSuite

type TxCmdTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*TxCmdTestSuite) SetupTest

func (s *TxCmdTestSuite) SetupTest()

SetupTest creates a new network for _each_ integration test. We create a new network for each test because there are some state modifications that are needed to be made in order to make useful queries. However, we don't want these state changes to be present in other tests.

func (*TxCmdTestSuite) TearDownTest

func (s *TxCmdTestSuite) TearDownTest()

TearDownTest cleans up the current test network after each test in the suite.

func (*TxCmdTestSuite) TestNewCancelAuctionCmd

func (s *TxCmdTestSuite) TestNewCancelAuctionCmd()

func (*TxCmdTestSuite) TestNewCreateBatchAuctionCmd

func (s *TxCmdTestSuite) TestNewCreateBatchAuctionCmd()

func (*TxCmdTestSuite) TestNewCreateFixedAmountPlanCmd

func (s *TxCmdTestSuite) TestNewCreateFixedAmountPlanCmd()

func (*TxCmdTestSuite) TestNewModifyBidCmd

func (s *TxCmdTestSuite) TestNewModifyBidCmd()

func (*TxCmdTestSuite) TestNewPlaceBidCmd

func (s *TxCmdTestSuite) TestNewPlaceBidCmd()

func (*TxCmdTestSuite) TestNewQueryAllowedBidderCmd

func (s *TxCmdTestSuite) TestNewQueryAllowedBidderCmd()

func (*TxCmdTestSuite) TestNewQueryAllowedBiddersCmd

func (s *TxCmdTestSuite) TestNewQueryAllowedBiddersCmd()

func (*TxCmdTestSuite) TestNewQueryAuctionCmd

func (s *TxCmdTestSuite) TestNewQueryAuctionCmd()

func (*TxCmdTestSuite) TestNewQueryAuctionsCmd

func (s *TxCmdTestSuite) TestNewQueryAuctionsCmd()

func (*TxCmdTestSuite) TestNewQueryBidsCmd

func (s *TxCmdTestSuite) TestNewQueryBidsCmd()

Jump to

Keyboard shortcuts

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