simulation

package
v0.0.0-...-0943177 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpWeightMsgCreateRelationship = "op_weight_msg_create_relationship"
	OpWeightMsgDeleteRelationship = "op_weight_msg_delete_relationship"
	OpWeightMsgBlockUser          = "op_weight_msg_block_user"
	OpWeightMsgUnBlockUser        = "op_weight_msg_unblock_user"

	DefaultGasValue = 200000
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a new decoder that unmarshals the KVPair's Value to the corresponding relationships type

func RandomGenesisAccount

func RandomGenesisAccount(r *rand.Rand, accounts []authtypes.GenesisAccount) authtypes.GenesisAccount

RandomGenesisAccount picks and returns a random genesis account from an array

func RandomRelationship

func RandomRelationship(r *rand.Rand, relationships []types.Relationship) types.Relationship

RandomRelationship picks and returns a random relationships from an array

func RandomUserBlock

func RandomUserBlock(r *rand.Rand, userBlocks []types.UserBlock) types.UserBlock

RandomUserBlock picks and returns a random user block from an array

func RandomizedGenState

func RandomizedGenState(simsState *module.SimulationState)

RandomizedGenState generates a random GenesisState for profile

func SimulateMsgBlockUser

SimulateMsgBlockUser tests and runs a single MsgBlockUser

func SimulateMsgCreateRelationship

func SimulateMsgCreateRelationship(
	k keeper.Keeper, sk subspaceskeeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper,
) simtypes.Operation

SimulateMsgCreateRelationship tests and runs a single MsgCreateRelationship

func SimulateMsgDeleteRelationship

func SimulateMsgDeleteRelationship(
	k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper,
) simtypes.Operation

SimulateMsgDeleteRelationship tests and runs a single MsgDeleteRelationship

func SimulateMsgUnblockUser

func SimulateMsgUnblockUser(
	k keeper.Keeper, ak authkeeper.AccountKeeper, bk bankkeeper.Keeper, fk feeskeeper.Keeper,
) simtypes.Operation

SimulateMsgUnblockUser tests and runs a single MsgUnblockUser

func WeightedOperations

WeightedOperations returns all the operations from the module with their respective weights

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL