Documentation ¶
Index ¶
- Constants
- func GenerateRandomSubspace(r *rand.Rand, accs []simtypes.Account) types.Subspace
- func GetAccount(address string, accs []simtypes.Account) *simtypes.Account
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomAddress(r *rand.Rand, addresses []string) string
- func RandomAuthAccount(r *rand.Rand, accounts []authtypes.AccountI) authtypes.AccountI
- func RandomDate(r *rand.Rand) time.Time
- func RandomDescription(r *rand.Rand) string
- func RandomGrant(r *rand.Rand, grants []types.Grant) types.Grant
- 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.Permissions) types.Permissions
- func RandomSection(r *rand.Rand, sections []types.Section) types.Section
- func RandomSectionDescription(r *rand.Rand) string
- func RandomSectionName(r *rand.Rand) 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 SimulateMsgCreateSection(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 SimulateMsgDeleteSection(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 SimulateMsgEditSection(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 SimulateMsgGrantAllowance(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgGrantTreasuryAuthorization(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgMoveSection(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgMoveUserGroup(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 SimulateMsgRevokeAllowance(k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper) simtypes.Operation
- func SimulateMsgRevokeTreasuryAuthorization(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" OpWeightMsgCreateSection = "op_weight_msg_create_section" OpWeightMsgEditSection = "op_weight_msg_edit_section" OpWeightMsgMoveSection = "op_weight_msg_move_section" OpWeightMsgDeleteSection = "op_weight_msg_delete_section" OpWeightMsgCreateUserGroup = "op_weight_msg_create_user_group" OpWeightMsgEditUserGroup = "op_weight_msg_edit_user_group" OpWeightMsgMoveUserGroup = "op_weight_msg_move_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" OpWeightMsgGrantTreasuryAuthorization = "op_weight_msg_grant_treasury_authorization" OpWeightMsgRevokeTreasuryAuthorization = "op_weight_msg_revoke_treasury_authorization" OpWeightMsgGrantAllowance = "op_weight_msg_grant_allowance" OpWeightMsgRevokeAllowance = "op_weight_msg_revoke_allowance" 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 ¶
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 RandomGrant ¶
RandomGrant returns a random user grant from the slice given
func RandomGroup ¶
RandomGroup returns a random group selecting it from the list of groups given
func RandomPermission ¶
func RandomPermission(r *rand.Rand, permissions []types.Permissions) types.Permissions
RandomPermission returns a random permission from the given slice
func RandomSection ¶
RandomSection returns a randomly selected section from the slice given
func RandomSectionDescription ¶
RandomSectionDescription returns a random section description
func RandomSectionName ¶
RandomSectionName returns a random section name
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 SimulateMsgCreateSection ¶
func SimulateMsgCreateSection( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgCreateSection tests and runs a single MsgCreateSection
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 SimulateMsgDeleteSection ¶
func SimulateMsgDeleteSection( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgDeleteSection tests and runs a single MsgDeleteSection
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 SimulateMsgEditSection ¶
func SimulateMsgEditSection( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgEditSection tests and runs a single MsgEditSection
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 SimulateMsgGrantAllowance ¶
func SimulateMsgGrantAllowance( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgGrantAllowance tests and runs a single MsgGrantAllowance
func SimulateMsgGrantTreasuryAuthorization ¶
func SimulateMsgGrantTreasuryAuthorization( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgGrantTreasuryAuthorization tests and runs a single MsgGrantTreasuryAuthorization
func SimulateMsgMoveSection ¶
func SimulateMsgMoveSection( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgMoveSection tests and runs a single MsgMoveSection
func SimulateMsgMoveUserGroup ¶
func SimulateMsgMoveUserGroup( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgMoveUserGroup tests and runs a single MsgMoveUserGroup
func SimulateMsgRemoveUserFromUserGroup ¶
func SimulateMsgRemoveUserFromUserGroup( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgRemoveUserFromUserGroup tests and runs a single MsgRemoveUserFromUserGroup
func SimulateMsgRevokeAllowance ¶
func SimulateMsgRevokeAllowance( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, ) simtypes.Operation
SimulateMsgRevokeAllowance tests and runs a single MsgRevokeAllowance
func SimulateMsgRevokeTreasuryAuthorization ¶
func SimulateMsgRevokeTreasuryAuthorization( k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, authzk authzkeeper.Keeper, ) simtypes.Operation
SimulateMsgRevokeTreasuryAuthorization tests and runs a single MsgRevokeTreasuryAuthorization
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, authzk authzkeeper.Keeper, ) sim.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.