Documentation
¶
Index ¶
- Constants
- func MsgBeginRedelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgBeginRedelegate]
- func MsgCancelUnbondingDelegationFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgCancelUnbondingDelegation]
- func MsgCreateValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgCreateValidator]
- func MsgDelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgDelegate]
- func MsgEditValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgEditValidator]
- func MsgUndelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgUndelegate]
- func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgBeginRedelegate(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgCancelUnbondingDelegate(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgCreateValidator(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgDelegate(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgEditValidator(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUndelegate(txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, ...) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, ...) simulation.WeightedOperations
Constants ¶
const ( DefaultWeightMsgCreateValidator int = 100 DefaultWeightMsgEditValidator int = 5 DefaultWeightMsgDelegate int = 100 DefaultWeightMsgUndelegate int = 100 DefaultWeightMsgBeginRedelegate int = 100 DefaultWeightMsgCancelUnbondingDelegation int = 100 OpWeightMsgCreateValidator = "op_weight_msg_create_validator" OpWeightMsgEditValidator = "op_weight_msg_edit_validator" OpWeightMsgDelegate = "op_weight_msg_delegate" OpWeightMsgUndelegate = "op_weight_msg_undelegate" OpWeightMsgBeginRedelegate = "op_weight_msg_begin_redelegate" OpWeightMsgCancelUnbondingDelegation = "op_weight_msg_cancel_unbonding_delegation" )
Simulation operation weights constants will be removed in the future
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants will be removed in the future
Variables ¶
This section is empty.
Functions ¶
func MsgBeginRedelegateFactory ¶ added in v0.53.0
func MsgBeginRedelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgBeginRedelegate]
func MsgCancelUnbondingDelegationFactory ¶ added in v0.53.0
func MsgCancelUnbondingDelegationFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgCancelUnbondingDelegation]
func MsgCreateValidatorFactory ¶ added in v0.53.0
func MsgCreateValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgCreateValidator]
func MsgDelegateFactory ¶ added in v0.53.0
func MsgDelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgDelegate]
func MsgEditValidatorFactory ¶ added in v0.53.0
func MsgEditValidatorFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgEditValidator]
func MsgUndelegateFactory ¶ added in v0.53.0
func MsgUndelegateFactory(k *keeper.Keeper) simsx.SimMsgFactoryFn[*types.MsgUndelegate]
func MsgUpdateParamsFactory ¶ added in v0.53.0
func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
MsgUpdateParamsFactory creates a gov proposal for param updates
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding staking type.
func ProposalMsgs ¶ added in v0.47.0
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents migrate to the msg factories instead, this method will be removed in the future
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for staking
func SimulateMsgBeginRedelegate ¶
func SimulateMsgBeginRedelegate( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgBeginRedelegate generates a MsgBeginRedelegate with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgCancelUnbondingDelegate ¶ added in v0.46.0
func SimulateMsgCancelUnbondingDelegate( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgCancelUnbondingDelegate generates a MsgCancelUnbondingDelegate with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgCreateValidator ¶
func SimulateMsgCreateValidator( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgCreateValidator generates a MsgCreateValidator with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgDelegate ¶
func SimulateMsgDelegate( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgDelegate generates a MsgDelegate with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgEditValidator ¶
func SimulateMsgEditValidator( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgEditValidator generates a MsgEditValidator with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgUndelegate ¶
func SimulateMsgUndelegate( txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simtypes.Operation
SimulateMsgUndelegate generates a MsgUndelegate with random values migrate to the msg factories instead, this method will be removed in the future
func SimulateMsgUpdateParams ¶ added in v0.47.0
SimulateMsgUpdateParams returns a random MsgUpdateParams migrate to the msg factories instead, this method will be removed in the future
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, txGen client.TxConfig, ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights migrate to the msg factories instead, this method will be removed in the future
Types ¶
This section is empty.