common

package
v28.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomAccounts

func CreateRandomAccounts(numAccts int) []sdk.AccAddress

CreateRandomAccounts is a function return a list of randomly generated AccAddresses

func GenerateGenesisAccounts

func GenerateGenesisAccounts(numAccounts int) []authtypes.GenesisAccount

GenerateGenesisAccounts creates n genesis accounts.

func GenerateTestAddrs

func GenerateTestAddrs() (string, string)

These are for testing msg.ValidateBasic() functions which need to validate for valid/invalid addresses. Should not be used for anything else because these addresses are totally uninterpretable (100% random).

func GenerateValidatorSet

func GenerateValidatorSet(n int) *cmttypes.ValidatorSet

GenerateValidatorSet creates a ValidatorSet with n validators.

func GenesisStateWithValSet

func GenesisStateWithValSet(
	codec codec.Codec,
	genesisState map[string]json.RawMessage,
	valSet *cmttypes.ValidatorSet,
	genAccs []authtypes.GenesisAccount,
	balances ...banktypes.Balance,
) junoapp.GenesisState

GenesisStateWithValSet creates a genesis state with a validator set.

func IsDebugLogEnabled

func IsDebugLogEnabled() bool

Types

type DebugAppOptions

type DebugAppOptions struct{}

DebugAppOptions is a stub implementing AppOptions

func (DebugAppOptions) Get

func (ao DebugAppOptions) Get(o string) interface{}

Get implements AppOptions

Directories

Path Synopsis
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.

Jump to

Keyboard shortcuts

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