Documentation ¶
Index ¶
- Constants
- func GetRandomExistingDelegation(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper, ...) (types.Delegation, bool)
- func NewDecodeStore(cdc codec.BinaryCodec, keeper *keeper.Keeper) func(kvA kv.Pair, kvB kv.Pair) string
- func ProposalMsgs(keeper *keeper.Keeper) []simtypes.WeightedProposalMsg
- func RandomOperatorJoinedServices(r *rand.Rand, operators []operatorstypes.Operator, ...) []types.OperatorJoinedServices
- func RandomParams(r *rand.Rand) types.Params
- func RandomServiceAllowedOperators(r *rand.Rand, services []servicestypes.Service, ...) []types.ServiceAllowedOperators
- func RandomServiceSecuringPools(r *rand.Rand, pools []poolstypes.Pool, services []servicestypes.Service) []types.ServiceSecuringPools
- func RandomUserPreferences(r *rand.Rand, services []servicestypes.Service) types.UserPreferences
- func RandomUserPreferencesEntries(r *rand.Rand, services []servicestypes.Service) []types.UserPreferencesEntry
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAddOperatorToAllowList(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgBorrowPoolSecurity(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgCeasePoolSecurityBorrow(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgDelegateOperator(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgDelegatePool(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgDelegateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, sk *serviceskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgJoinService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgLeaveService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRemoveOperatorFromAllowlist(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgSetUserPreferences(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, sk *serviceskeeper.Keeper, ...) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func WeightedOperations(appParams simtypes.AppParams, ak authkeeper.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( DefaultWeightMsgJoinService int = 80 DefaultWeightMsgLeaveService int = 30 DefaultWeightMsgAddOperatorToAllowList int = 50 DefaultWeightMsgRemoveOperatorFromAlloList int = 50 DefaultWeightMsgBorrowPoolSecurity int = 80 DefaultWeightMsgCeasePoolSecurityBorrow int = 30 DefaultWeightMsgDelegatePool int = 80 DefaultWeightMsgDelegateOperator int = 80 DefaultWeightMsgDelegateService int = 80 DefaultWeightMsgSetUserPreferences int = 20 OperationWeightMsgJoinService = "op_weight_msg_join_service" OperationWeightMsgLeaveService = "op_weight_msg_leave_service" OperationWeightMsgAddOperatorToAlloList = "op_weight_msg_add_operator_to_allow_list" OperationWeightMsgRemoveOperatorFromAllowList = "op_weight_msg_remove_operator_from_allow_list" OperationWeightMsgBorrowPoolSecurity = "op_weight_msg_borrow_pool_security" OperationWeightMsgCeasePoolSecurityBorrow = "op_weight_msg_cease_pool_security_borrow" OperationWeightMsgDelegatePool = "Op_weight_msg_delegate_pool" OperationWeightMsgDelegateOperator = "op_weight_msg_delegate_operator" OperationWeightMsgDelegateService = "op_weight_msg_delegate_service" OperationWeightMsgSetUserPreferences = "op_weight_msg_set_user_preferences" )
Simulation operation weights constants
View Source
const ( DefaultWeightMsgUpdateParams int = 50 OperationWeightMsgUpdateParams = "op_weight_msg_update_params" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶
func NewDecodeStore(cdc codec.BinaryCodec, keeper *keeper.Keeper) func(kvA kv.Pair, kvB kv.Pair) string
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding restaking type.
func ProposalMsgs ¶
func ProposalMsgs(keeper *keeper.Keeper) []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomOperatorJoinedServices ¶
func RandomOperatorJoinedServices( r *rand.Rand, operators []operatorstypes.Operator, services []servicestypes.Service, ) []types.OperatorJoinedServices
func RandomServiceAllowedOperators ¶
func RandomServiceAllowedOperators( r *rand.Rand, services []servicestypes.Service, operators []operatorstypes.Operator, ) []types.ServiceAllowedOperators
func RandomServiceSecuringPools ¶
func RandomServiceSecuringPools( r *rand.Rand, pools []poolstypes.Pool, services []servicestypes.Service, ) []types.ServiceSecuringPools
func RandomUserPreferences ¶
func RandomUserPreferences(r *rand.Rand, services []servicestypes.Service) types.UserPreferences
func RandomUserPreferencesEntries ¶
func RandomUserPreferencesEntries( r *rand.Rand, services []servicestypes.Service, ) []types.UserPreferencesEntry
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the restaking module
func SimulateMsgAddOperatorToAllowList ¶
func SimulateMsgAddOperatorToAllowList( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgBorrowPoolSecurity ¶
func SimulateMsgBorrowPoolSecurity( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgCeasePoolSecurityBorrow ¶
func SimulateMsgCeasePoolSecurityBorrow( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgDelegateOperator ¶
func SimulateMsgDelegateOperator( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgDelegatePool ¶
func SimulateMsgDelegatePool( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgDelegateService ¶
func SimulateMsgDelegateService( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgJoinService ¶
func SimulateMsgJoinService( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, ) simtypes.Operation
func SimulateMsgLeaveService ¶
func SimulateMsgLeaveService( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgRemoveOperatorFromAllowlist ¶
func SimulateMsgRemoveOperatorFromAllowlist( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, opk *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgSetUserPreferences ¶
func SimulateMsgSetUserPreferences( ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, sk *serviceskeeper.Keeper, k *keeper.Keeper, ) simtypes.Operation
func SimulateMsgUpdateParams ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, pk *poolskeeper.Keeper, opk *operatorskeeper.Keeper, sk *serviceskeeper.Keeper, 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.