simulation

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: AGPL-3.0 Imports: 13 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 RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a random GenesisState for `Prices`.

func SimulateMsgUpdateMarketPrices

func SimulateMsgUpdateMarketPrices(
	cdc *codec.ProtoCodec,
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simtypes.Operation

SimulateMsgUpdateMarketPrices generates a random MsgUpdateMarketPrices.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams,
	jsonCdc codec.JSONCodec,
	k keeper.Keeper,
	ak types.AccountKeeper,
	bk types.BankKeeper,
) simulation.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