testutil

package
v2.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgCreatePair

func MsgCreatePair(clientCtx client.Context, from, baseCoinDenom, quoteCoinDenom string, extraArgs ...string) (testutil.BufferWriter, error)

func MsgCreatePool

func MsgCreatePool(clientCtx client.Context, from string, pairId uint64, depositCoins sdk.Coins, extraArgs ...string) (testutil.BufferWriter, error)

func MsgDeposit

func MsgDeposit(clientCtx client.Context, from string, poolId uint64, depositCoins sdk.Coins, extraArgs ...string) (testutil.BufferWriter, error)

nolint

func MsgLimitOrder

func MsgLimitOrder(
	clientCtx client.Context, from string, pairId uint64, dir types.OrderDirection, offerCoin sdk.Coin,
	demandCoinDenom string, price sdk.Dec, amt sdk.Int, orderLifespan time.Duration, extraArgs ...string) (testutil.BufferWriter, error)

func MsgWithdraw

func MsgWithdraw(clientCtx client.Context, from string, poolId uint64, poolCoin sdk.Coin, extraArgs ...string) (testutil.BufferWriter, error)

nolint

func NewAppConstructor

func NewAppConstructor(encodingCfg squadparams.EncodingConfig) network.AppConstructor

Types

type IntegrationTestSuite

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

func (*IntegrationTestSuite) SetupSuite

func (s *IntegrationTestSuite) SetupSuite()

func (*IntegrationTestSuite) TearDownSuite

func (s *IntegrationTestSuite) TearDownSuite()

func (*IntegrationTestSuite) TestQueryOrdersCmd

func (s *IntegrationTestSuite) TestQueryOrdersCmd()

func (*IntegrationTestSuite) TestQueryPairsCmd

func (s *IntegrationTestSuite) TestQueryPairsCmd()

func (*IntegrationTestSuite) TestQueryPoolsCmd

func (s *IntegrationTestSuite) TestQueryPoolsCmd()

Jump to

Keyboard shortcuts

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