Documentation ¶
Index ¶
- Constants
- func GetRandomExistingService(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper, ...) (types.Service, bool)
- func NewDecodeStore(keeper *keeper.Keeper) func(kvA kv.Pair, kvB kv.Pair) string
- func ProposalMsgs(keeper *keeper.Keeper) []simtypes.WeightedProposalMsg
- func RandomParams(r *rand.Rand, bondDenom string) types.Params
- func RandomService(r *rand.Rand, accs []simtypes.Account) types.Service
- func RandomServiceParams(r *rand.Rand) types.ServiceParams
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgAccreditService(k *keeper.Keeper) simtypes.MsgSimulatorFn
- func SimulateMsgActivateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgCreateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgDeactivateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgDeleteService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgRevokeServiceAccreditation(k *keeper.Keeper) simtypes.MsgSimulatorFn
- func SimulateMsgSetServiceParams(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgTransferServiceOwnership(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg
- func SimulateMsgUpdateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, ak authkeeper.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( DefaultWeightMsgCreateService int = 80 DefaultWeightMsgUpdateService int = 30 DefaultWeightMsgActivateService int = 60 DefaultWeightMsgDeactivateService int = 20 DefaultWeightMsgTransferServiceOwnership int = 15 DefaultWeightMsgDeleteService int = 10 DefaultWeightMsgSetServiceParams int = 40 OperationWeightMsgCreateService = "op_weight_msg_create_service" OperationWeightMsgUpdateService = "op_weight_msg_update_service" OperationWeightMsgActivateService = "op_weight_msg_activate_service" OperationWeightMsgDeactivateService = "op_weight_msg_deactivate_service" OperationWeightMsgTransferServiceOwnership = "op_weight_msg_transfer_service_ownership" OperationWeightMsgDeleteService = "op_weight_msg_delete_service" OperationWeightMsgSetServiceParams = "op_weight_msg_set_service_params" )
Simulation operation weights constants
const ( DefaultWeightMsgUpdateParams int = 50 DefaultWeightMsgAccreditService int = 50 DefaultWeightMsgRevokeServiceAccreditation int = 50 OperationWeightMsgUpdateParams = "op_weight_msg_update_params" OperationWeightMsgAccreditService = "op_weight_msg_accredit_service" OperationWeightMsgRevokeServiceAccreditation = "op_weight_msg_revoke_service_accreditation" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func GetRandomExistingService ¶
func GetRandomExistingService(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper, filter func(s types.Service) bool) (types.Service, bool)
GetRandomExistingService returns a random existing service
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding services type.
func ProposalMsgs ¶
func ProposalMsgs(keeper *keeper.Keeper) []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomParams ¶
RandomParams returns a random params
func RandomService ¶
RandomService returns a random service
func RandomServiceParams ¶
func RandomServiceParams(r *rand.Rand) types.ServiceParams
RandomServiceParams returns a random service params
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for the services module
func SimulateMsgAccreditService ¶
func SimulateMsgAccreditService( k *keeper.Keeper, ) simtypes.MsgSimulatorFn
func SimulateMsgActivateService ¶
func SimulateMsgActivateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgCreateService ¶
func SimulateMsgCreateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgDeactivateService ¶
func SimulateMsgDeactivateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgDeleteService ¶
func SimulateMsgDeleteService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgRevokeServiceAccreditation ¶
func SimulateMsgRevokeServiceAccreditation( k *keeper.Keeper, ) simtypes.MsgSimulatorFn
func SimulateMsgSetServiceParams ¶
func SimulateMsgSetServiceParams(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgTransferServiceOwnership ¶
func SimulateMsgTransferServiceOwnership(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func SimulateMsgUpdateParams ¶
SimulateMsgUpdateParams returns a random MsgUpdateParams
func SimulateMsgUpdateService ¶
func SimulateMsgUpdateService(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, k *keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.