simulation

package
v0.45.16-ics-lsm-strea... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 16 Imported by: 29

Documentation

Index

Constants

View Source
const (
	UnbondingTime             = "unbonding_time"
	MaxValidators             = "max_validators"
	HistoricalEntries         = "historical_entries"
	ValidatorBondFactor       = "validator_bond_factor"
	GlobalLiquidStakingCap    = "global_liquid_staking_cap"
	ValidatorLiquidStakingCap = "validator_liquid_staking_cap"
)

Simulation parameter constants

View Source
const (
	OpWeightMsgCreateValidator             = "op_weight_msg_create_validator"               //nolint:gosec
	OpWeightMsgEditValidator               = "op_weight_msg_edit_validator"                 //nolint:gosec
	OpWeightMsgDelegate                    = "op_weight_msg_delegate"                       //nolint:gosec
	OpWeightMsgUndelegate                  = "op_weight_msg_undelegate"                     //nolint:gosec
	OpWeightMsgBeginRedelegate             = "op_weight_msg_begin_redelegate"               //nolint:gosec
	OpWeightMsgCancelUnbondingDelegation   = "op_weight_msg_cancel_unbonding_delegation"    //nolint:gosec
	OpWeightMsgValidatorBond               = "op_weight_msg_validator_bond"                 //nolint:gosec
	OpWeightMsgTokenizeShares              = "op_weight_msg_tokenize_shares"                //nolint:gosec
	OpWeightMsgRedeemTokensforShares       = "op_weight_msg_redeem_tokens_for_shares"       //nolint:gosec
	OpWeightMsgTransferTokenizeShareRecord = "op_weight_msg_transfer_tokenize_share_record" //nolint:gosec
	OpWeightMsgDisableTokenizeShares       = "op_weight_msg_disable_tokenize_shares"        //nolint:gosec
	OpWeightMsgEnableTokenizeShares        = "op_weight_msg_enable_tokenize_shares"         //nolint:gosec
)

Variables

This section is empty.

Functions

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

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for staking

func SimulateMsgBeginRedelegate

func SimulateMsgBeginRedelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values

func SimulateMsgCancelUnbondingDelegate added in v0.46.0

func SimulateMsgCancelUnbondingDelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgCancelUnbondingDelegate generates a MsgCancelUnbondingDelegate with random values

func SimulateMsgCreateValidator

func SimulateMsgCreateValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgCreateValidator generates a MsgCreateValidator with random values

func SimulateMsgDelegate

func SimulateMsgDelegate(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgDelegate generates a MsgDelegate with random values

func SimulateMsgDisableTokenizeShares

func SimulateMsgDisableTokenizeShares(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

func SimulateMsgEditValidator

func SimulateMsgEditValidator(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgEditValidator generates a MsgEditValidator with random values

func SimulateMsgEnableTokenizeShares

func SimulateMsgEnableTokenizeShares(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

func SimulateMsgRedeemTokensforShares

func SimulateMsgRedeemTokensforShares(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgRedeemTokensforShares generates a MsgRedeemTokensforShares with random values

func SimulateMsgTokenizeShares

func SimulateMsgTokenizeShares(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgTokenizeShares generates a MsgTokenizeShares with random values

func SimulateMsgTransferTokenizeShareRecord

func SimulateMsgTransferTokenizeShareRecord(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation

SimulateMsgTransferTokenizeShareRecord generates a MsgTransferTokenizeShareRecord with random values

func SimulateMsgUndelegate

func SimulateMsgUndelegate(ak types.AccountKeeper, bk types.BankKeeper, 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