simulation

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgWrappedDelegate        = "op_weight_msg_wrapped_delegate"
	OpWeightMsgWrappedUndelegate      = "op_weight_msg_wrapped_undelegate"
	OpWeightMsgWrappedBeginRedelegate = "op_weight_msg_wrapped_begin_redelegate"
)

Simulation operation weights constants

View Source
const (
	EpochIntervalKey = "epoch_interval"
)

Simulation parameter constants

Variables

This section is empty.

Functions

func FindAccount

func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)

FindAccount find a specific address from an account list

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 epoching type.

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for staking

func SimulateMsgWrappedBeginRedelegate

func SimulateMsgWrappedBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values

func SimulateMsgWrappedDelegate

func SimulateMsgWrappedDelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgDelegate generates a MsgDelegate with random values

func SimulateMsgWrappedUndelegate

func SimulateMsgWrappedUndelegate(ak types.AccountKeeper, bk types.BankKeeper, stk types.StakingKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgUndelegate generates a MsgUndelegate with random values

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

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