simulation

package
v0.0.0-...-f74a9f6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommunityTax    = "community_tax"
	WithdrawEnabled = "withdraw_enabled"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func GenCommunityTax

func GenCommunityTax(r *rand.Rand) math.LegacyDec

GenCommunityTax randomized CommunityTax

func GenWithdrawEnabled

func GenWithdrawEnabled(r *rand.Rand) bool

GenWithdrawEnabled returns a randomized WithdrawEnabled parameter.

func MsgUpdateParamsFactory

func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding distribution type.

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for distribution

Types

This section is empty.

Jump to

Keyboard shortcuts

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