Documentation ¶
Index ¶
- type KeeperTestHelper
- func (keeperTestHelper *KeeperTestHelper) AllocateRewardsToValidator(valAddr sdk.ValAddress, rewardAmt sdk.Int)
- func (keeperTestHelper *KeeperTestHelper) BeginNewBlock(executeNextEpoch bool)
- func (keeperTestHelper *KeeperTestHelper) EndBlock()
- func (keeperTestHelper *KeeperTestHelper) LockTokens(addr sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockID uint64)
- func (keeperTestHelper *KeeperTestHelper) SetupGammPoolsWithBondDenomMultiplier(multipliers []sdk.Dec) []gammtypes.PoolI
- func (keeperTestHelper *KeeperTestHelper) SetupValidator(bondStatus stakingtypes.BondStatus) sdk.ValAddress
- func (keeperTestHelper *KeeperTestHelper) SwapAndSetSpotPrice(poolId uint64, fromAsset gammtypes.PoolAsset, toAsset gammtypes.PoolAsset) sdk.Dec
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeeperTestHelper ¶
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
Click to show internal directories.
Click to hide internal directories.