validator_testutils

package
v0.0.0-...-13dda56 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAndMockTestValidator

func BuildAndMockTestValidator(
	ctx sdk.Context,
	name string,
	power math.Int,
	mValStore *mocks.ValidatorStore,
) stakingtypes.ValidatorI

func BuildTestValidator

func BuildTestValidator(name string, bondedTokens math.Int) stakingtypes.ValidatorI

func ConvertPowerToTokens

func ConvertPowerToTokens(power int64) math.Int

func GetConsAddressByName

func GetConsAddressByName(name string) sdk.ConsAddress

func GetValAddressByName

func GetValAddressByName(name string) sdk.ValAddress

func NewTotalBondedTokensMockReturn

func NewTotalBondedTokensMockReturn(
	ctx sdk.Context,
	names []string,
) *mocks.ValidatorStore

func NewTotalBondedTokensValidatorMockReturnWithPowers

func NewTotalBondedTokensValidatorMockReturnWithPowers(
	ctx sdk.Context,
	names []string,
	powers map[string]int64,
) *mocks.ValidatorStore

Types

This section is empty.

Jump to

Keyboard shortcuts

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