Documentation ¶
Index ¶
- Constants
- func GenerateRandomSubspace(r *rand.Rand, accs []simtypes.Account) types.Subspace
- func GetAccount(address sdk.Address, accs []simtypes.Account) *simtypes.Account
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomAddress(r *rand.Rand, addresses []sdk.AccAddress) sdk.AccAddress
- func RandomAuthAccount(r *rand.Rand, accounts []authtypes.AccountI) authtypes.AccountI
- func RandomDate(r *rand.Rand) time.Time
- func RandomDescription(r *rand.Rand) string
- func RandomGenesisSubspace(r *rand.Rand, subspaces []types.GenesisSubspace) types.GenesisSubspace
- func RandomGroup(r *rand.Rand, groups []types.UserGroup) types.UserGroup
- func RandomID(r *rand.Rand) uint64
- func RandomName(r *rand.Rand) string
- func RandomPermission(r *rand.Rand, permissions []types.Permission) types.Permission
- func RandomString(r *rand.Rand, strings []string) string
- func RandomSubspace(r *rand.Rand, subspaces []types.Subspace) types.Subspace
- func RandomizeGenState(simState *module.SimulationState)
- func SimulateMsgAddUserToUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgCreateSubspace(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgCreateUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgDeleteSubspace(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgDeleteUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgEditSubspace(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgEditUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgRemoveUserFromUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgSetUserGroupPermissions(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgSetUserPermissions(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) sim.WeightedOperations
Constants ¶
const ( OpWeightMsgCreateSubspace = "op_weight_msg_create_subspace" OpWeightMsgEditSubspace = "op_weight_msg_edit_subspace" OpWeightMsgDeleteSubspace = "op_weight_msg_delete_subspace" OpWeightMsgCreateUserGroup = "op_weight_msg_create_user_group" OpWeightMsgEditUserGroup = "op_weight_msg_edit_user_group" OpWeightMsgSetUserGroupPermissions = "op_weight_msg_set_user_group_permissions" OpWeightMsgDeleteUserGroup = "op_weight_msg_delete_user_group" OpWeightMsgAddUserToUserGroup = "op_weight_msg_add_user_to_user_group" OpWeightMsgRemoveUserFromUserGroup = "op_weight_msg_remove_user_from_user_group" OpWeightMsgSetUserPermissions = "op_weight_msg_set_user_permissions" DefaultGasValue = 200_000 )
Simulation operation weights constants #nosec G101 -- This is a false positive
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomSubspace ¶
GenerateRandomSubspace generates a new subspace containing random data
func GetAccount ¶
GetAccount gets the account having the given address from the accs list
func NewDecodeStore ¶
NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding subspaces type
func RandomAddress ¶
func RandomAddress(r *rand.Rand, addresses []sdk.AccAddress) sdk.AccAddress
RandomAddress returns a random address from the slice given
func RandomAuthAccount ¶
RandomAuthAccount returns a random account from the slice given
func RandomDate ¶
RandomDate returns a random post creation date
func RandomDescription ¶
RandomDescription returns a random subspace description
func RandomGenesisSubspace ¶
func RandomGenesisSubspace(r *rand.Rand, subspaces []types.GenesisSubspace) types.GenesisSubspace
RandomGenesisSubspace picks a random genesis subspace from the given slice
func RandomGroup ¶
RandomGroup returns a random group selecting it from the list of groups given
func RandomPermission ¶
func RandomPermission(r *rand.Rand, permissions []types.Permission) types.Permission
RandomPermission returns a random permission from the given slice
func RandomString ¶
RandomString returns a random string from the given slice
func RandomSubspace ¶
RandomSubspace picks a random subspace from an array and returns its position as well as value.
func RandomizeGenState ¶
func RandomizeGenState(simState *module.SimulationState)
RandomizeGenState generates a random GenesisState for subspaces
func SimulateMsgAddUserToUserGroup ¶
func SimulateMsgAddUserToUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgAddUserToUserGroup tests and runs a single MsgAddUserToUserGroup
func SimulateMsgCreateSubspace ¶
func SimulateMsgCreateSubspace(ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgCreateSubspace tests and runs a single MsgCreateSubspace
func SimulateMsgCreateUserGroup ¶
func SimulateMsgCreateUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgCreateUserGroup tests and runs a single MsgCreateUserGroup
func SimulateMsgDeleteSubspace ¶
func SimulateMsgDeleteSubspace( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteSubspace tests and runs a single msg delete subspace
func SimulateMsgDeleteUserGroup ¶
func SimulateMsgDeleteUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgDeleteUserGroup tests and runs a single MsgDeleteUserGroup
func SimulateMsgEditSubspace ¶
func SimulateMsgEditSubspace( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgEditSubspace tests and runs a single msg edit subspace
func SimulateMsgEditUserGroup ¶
func SimulateMsgEditUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgEditUserGroup tests and runs a single MsgEditUserGroup
func SimulateMsgRemoveUserFromUserGroup ¶
func SimulateMsgRemoveUserFromUserGroup(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgRemoveUserFromUserGroup tests and runs a single MsgRemoveUserFromUserGroup
func SimulateMsgSetUserGroupPermissions ¶
func SimulateMsgSetUserGroupPermissions(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgSetUserGroupPermissions tests and runs a single MsgSetUserGroupPermissions
func SimulateMsgSetUserPermissions ¶
func SimulateMsgSetUserPermissions(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
SimulateMsgSetUserPermissions tests and runs a single MsgSetUserPermissions
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.