simulation

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAccount

func FindAccount(accs []simtypes.Account, address string) (simtypes.Account, bool)

FindAccount find a specific address from an account list

func GenerateDirectory

func GenerateDirectory(address sdk.AccAddress) (paths []string, err error)

Randomly generate a file directory using account address and returns paths of files ie. for path: s/home/document/meow.md returns {"s","s/home", "s/home/document", "s/home/document/meow.md"}

func GetDirectory

func GetDirectory() (paths []string)

Returns seven predefined paths ie. "s", "s/home", "s/home/filetree", "s/home/filetree/meow.mp3"

func SimulateMsgAddEditors

func SimulateMsgAddEditors(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgAddViewers

func SimulateMsgAddViewers(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgChangeOwner

func SimulateMsgChangeOwner(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgDeleteFile

func SimulateMsgDeleteFile(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgRemoveEditors

func SimulateMsgRemoveEditors(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgRemoveViewers

func SimulateMsgRemoveViewers(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgResetEditors

func SimulateMsgResetEditors(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

func SimulateMsgResetViewers

func SimulateMsgResetViewers(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k keeper.Keeper,
) simtypes.Operation

Types

This section is empty.

Jump to

Keyboard shortcuts

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