Documentation ¶
Index ¶
- Constants
- func ProposalContents(k keeper.Keeper, gk types.GammKeeper) []simtypes.WeightedProposalContent
- func RandomAccountLock(ctx sdk.Context, r *rand.Rand, lk types.LockupKeeper, addr sdk.AccAddress) *lockuptypes.PeriodLock
- func RandomLockAndAccount(ctx sdk.Context, r *rand.Rand, lk types.LockupKeeper, accs []simtypes.Account) (*lockuptypes.PeriodLock, simtypes.Account)
- func RandomValidator(ctx sdk.Context, r *rand.Rand, sk types.StakingKeeper) *stakingtypes.Validator
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgSuperfluidDelegate(ak stakingtypes.AccountKeeper, bk furysimtypes.BankKeeper, ...) simtypes.Operation
- func SimulateMsgSuperfluidUndelegate(ak stakingtypes.AccountKeeper, bk furysimtypes.BankKeeper, ...) simtypes.Operation
- func SimulateRemoveSuperfluidAssetsProposal(k keeper.Keeper, gk types.GammKeeper) simtypes.ContentSimulatorFn
- func SimulateSetSuperfluidAssetsProposal(k keeper.Keeper, gk types.GammKeeper) simtypes.ContentSimulatorFn
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( DefaultWeightMsgSuperfluidDelegate int = 100 DefaultWeightMsgSuperfluidUndelegate int = 50 DefaultWeightMsgSuperfluidRedelegate int = 50 DefaultWeightSetSuperfluidAssetsProposal int = 5 DefaultWeightRemoveSuperfluidAssetsProposal int = 2 OpWeightMsgSuperfluidDelegate = "op_weight_msg_superfluid_delegate" OpWeightMsgSuperfluidUndelegate = "op_weight_msg_superfluid_undelegate" OpWeightMsgSuperfluidRedelegate = "op_weight_msg_superfluid_redelegate" )
Simulation operation weights constants.
View Source
const ( OpWeightSetSuperfluidAssetsProposal = "op_weight_set_superfluid_assets_proposal" OpWeightRemoveSuperfluidAssetsProposal = "op_weight_remove_superfluid_assets_proposal" )
Variables ¶
This section is empty.
Functions ¶
func ProposalContents ¶
func ProposalContents(k keeper.Keeper, gk types.GammKeeper) []simtypes.WeightedProposalContent
ProposalContents defines the module weighted proposals' contents.
func RandomAccountLock ¶
func RandomAccountLock(ctx sdk.Context, r *rand.Rand, lk types.LockupKeeper, addr sdk.AccAddress) *lockuptypes.PeriodLock
func RandomLockAndAccount ¶
func RandomLockAndAccount(ctx sdk.Context, r *rand.Rand, lk types.LockupKeeper, accs []simtypes.Account) (*lockuptypes.PeriodLock, simtypes.Account)
func RandomValidator ¶
func RandomValidator(ctx sdk.Context, r *rand.Rand, sk types.StakingKeeper) *stakingtypes.Validator
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for staking.
func SimulateMsgSuperfluidDelegate ¶
func SimulateMsgSuperfluidDelegate(ak stakingtypes.AccountKeeper, bk furysimtypes.BankKeeper, sk types.StakingKeeper, lk types.LockupKeeper, k keeper.Keeper) simtypes.Operation
SimulateMsgSuperfluidDelegate generates a MsgSuperfluidDelegate with random values.
func SimulateMsgSuperfluidUndelegate ¶
func SimulateMsgSuperfluidUndelegate(ak stakingtypes.AccountKeeper, bk furysimtypes.BankKeeper, lk types.LockupKeeper, k keeper.Keeper) simtypes.Operation
func SimulateRemoveSuperfluidAssetsProposal ¶
func SimulateRemoveSuperfluidAssetsProposal(k keeper.Keeper, gk types.GammKeeper) simtypes.ContentSimulatorFn
SimulateRemoveSuperfluidAssetsProposal generates random superfluid asset removal proposal content.
func SimulateSetSuperfluidAssetsProposal ¶
func SimulateSetSuperfluidAssetsProposal(k keeper.Keeper, gk types.GammKeeper) simtypes.ContentSimulatorFn
SimulateSetSuperfluidAssetsProposal generates random superfluid asset set proposal content.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak stakingtypes.AccountKeeper, bk furysimtypes.BankKeeper, sk types.StakingKeeper, lk types.LockupKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.