Documentation ¶
Index ¶
- Constants
- func GenDowntimeJailDuration(r *rand.Rand) time.Duration
- func GenMinSignedPerWindow(r *rand.Rand) math.LegacyDec
- func GenSignedBlocksWindow(r *rand.Rand) int64
- func GenSlashFractionDoubleSign(r *rand.Rand) math.LegacyDec
- func GenSlashFractionDowntime(r *rand.Rand) math.LegacyDec
- func MsgUnjailFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryX
- func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
- func NewDecodeStore(cdc codec.BinaryCodec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgUpdateParams(_ context.Context, r *rand.Rand, _ []simtypes.Account, ac coreaddress.Codec) (sdk.Msg, error)
Constants ¶
const ( SignedBlocksWindow = "signed_blocks_window" MinSignedPerWindow = "min_signed_per_window" DowntimeJailDuration = "downtime_jail_duration" SlashFractionDoubleSign = "slash_fraction_double_sign" SlashFractionDowntime = "slash_fraction_downtime" )
Simulation parameter constants
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GenDowntimeJailDuration ¶
GenDowntimeJailDuration randomized DowntimeJailDuration
func GenMinSignedPerWindow ¶
GenMinSignedPerWindow randomized MinSignedPerWindow
func GenSignedBlocksWindow ¶
GenSignedBlocksWindow randomized SignedBlocksWindow
func GenSlashFractionDoubleSign ¶
GenSlashFractionDoubleSign randomized SlashFractionDoubleSign
func GenSlashFractionDowntime ¶
GenSlashFractionDowntime randomized SlashFractionDowntime
func MsgUnjailFactory ¶
func MsgUnjailFactory(k keeper.Keeper, sk types.StakingKeeper) simsx.SimMsgFactoryX
func MsgUpdateParamsFactory ¶
func MsgUpdateParamsFactory() simsx.SimMsgFactoryFn[*types.MsgUpdateParams]
MsgUpdateParamsFactory creates a gov proposal for param updates
func NewDecodeStore ¶
func NewDecodeStore(cdc codec.BinaryCodec) func(kvA, kvB kv.Pair) string
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding slashing type.
func ProposalMsgs ¶
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for slashing
Types ¶
This section is empty.