common

package
v30.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateRandomAccountsAndPrivKeys

func CreateRandomAccountsAndPrivKeys(numAccts int) ([]sdk.AccAddress, []cryptotypes.PrivKey)

CreateRandomAccountsAndPrivKeys is a function return a list of randomly generated AccAddresses and their according private keys.

func GenerateGenesisAccounts

func GenerateGenesisAccounts(numAccounts int) []authtypes.GenesisAccount

GenerateGenesisAccounts creates n genesis accounts.

func GenerateValidatorSet

func GenerateValidatorSet(n int) *cmttypes.ValidatorSet

GenerateValidatorSet creates a ValidatorSet with n validators.

func GenesisStateWithValSet

func GenesisStateWithValSet(
	cdc 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 (DebugAppOptions) Get(o string) any

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