testutil

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KavamintTestSuite

type KavamintTestSuite struct {
	suite.Suite

	App           app.TestApp
	Ctx           sdk.Context
	Keeper        keeper.Keeper
	StakingKeeper stakingkeeper.Keeper

	BondDenom string
}

func (*KavamintTestSuite) SetBondedTokenRatio

func (suite *KavamintTestSuite) SetBondedTokenRatio(ratio sdk.Dec) sdk.Coins

SetBondedTokenRatio mints the total supply to an account and creates a validator with a self delegation that makes the total staked token ratio set as desired. EndBlocker must be run in order for tokens to become bonded. returns total supply coins

func (*KavamintTestSuite) SetupTest

func (suite *KavamintTestSuite) SetupTest()

Jump to

Keyboard shortcuts

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