testvalidator

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FundModuleAccount

func FundModuleAccount(bankKeeper bankkeeper.Keeper, ctx sdk.Context, recipientMod string, amounts sdk.Coins) error

func GetTmConsPubKey

func GetTmConsPubKey(v types.Validator) (tmcrypto.PubKey, error)

GetTmConsPubKey gets the validator's public key as a tmcrypto.PubKey.

func NewValidator

func NewValidator(t testing.TB, operator sdk.ValAddress, pubKey cryptotypes.PubKey) types.Validator

NewValidator is a testing helper method to create validators in tests

func ToTmValidator

func ToTmValidator(v types.Validator) (*tmtypes.Validator, error)

ToTmValidator casts an SDK validator to a tendermint type Validator.

func ToTmValidators

func ToTmValidators(v types.Validators) ([]*tmtypes.Validator, error)

ToTmValidators casts all validators to the corresponding tendermint type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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