test_helpers

package
v12.0.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestCfmmCommonTestSuite

func TestCfmmCommonTestSuite(t *testing.T)

Types

type CfmmCommonTestSuite

type CfmmCommonTestSuite struct {
	suite.Suite
}

CfmmCommonTestSuite is the common test suite struct of Constant Function Market Maker, that pool-models can inherit from.

func (*CfmmCommonTestSuite) CreateTestContext

func (suite *CfmmCommonTestSuite) CreateTestContext() sdk.Context

func (*CfmmCommonTestSuite) TestCalculateAmountOutAndIn_InverseRelationship

func (suite *CfmmCommonTestSuite) TestCalculateAmountOutAndIn_InverseRelationship(
	ctx sdk.Context,
	pool types.PoolI,
	assetInDenom string,
	assetOutDenom string,
	initialCalcOut int64,
	swapFee sdk.Dec,
)

Jump to

Keyboard shortcuts

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