testutil

package
v0.0.3-testnet.mage Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 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 MagemintTestSuite

type MagemintTestSuite struct {
	suite.Suite

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

	BondDenom string
}

func (*MagemintTestSuite) SetBondedTokenRatio

func (suite *MagemintTestSuite) 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 (*MagemintTestSuite) SetupTest

func (suite *MagemintTestSuite) SetupTest()

Jump to

Keyboard shortcuts

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