apptesting

package
v7.3.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeeperTestHelper

type KeeperTestHelper struct {
	suite.Suite

	App *app.OsmosisApp
	Ctx sdk.Context
}

func (*KeeperTestHelper) AllocateRewardsToValidator added in v7.1.0

func (keeperTestHelper *KeeperTestHelper) AllocateRewardsToValidator(valAddr sdk.ValAddress, rewardAmt sdk.Int)

func (*KeeperTestHelper) BeginNewBlock

func (keeperTestHelper *KeeperTestHelper) BeginNewBlock(executeNextEpoch bool)

func (*KeeperTestHelper) EndBlock

func (keeperTestHelper *KeeperTestHelper) EndBlock()

func (*KeeperTestHelper) LockTokens added in v7.1.0

func (keeperTestHelper *KeeperTestHelper) LockTokens(addr sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockID uint64)

func (*KeeperTestHelper) SetupGammPoolsWithBondDenomMultiplier added in v7.1.0

func (keeperTestHelper *KeeperTestHelper) SetupGammPoolsWithBondDenomMultiplier(multipliers []sdk.Dec) []gammtypes.PoolI

SetupGammPoolsWithBondDenomMultiplier uses given multipliers to set initial pool supply of bond denom.

func (*KeeperTestHelper) SetupValidator

func (keeperTestHelper *KeeperTestHelper) SetupValidator(bondStatus stakingtypes.BondStatus) sdk.ValAddress

func (*KeeperTestHelper) SwapAndSetSpotPrice added in v7.1.0

func (keeperTestHelper *KeeperTestHelper) SwapAndSetSpotPrice(poolId uint64, fromAsset gammtypes.PoolAsset, toAsset gammtypes.PoolAsset) sdk.Dec

SwapAndSetSpotPrice runs a swap to set Spot price of a pool using arbitrary values returns spot price after the arbitrary swap

Jump to

Keyboard shortcuts

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