simulation

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAccount

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

FindAccount find account by string hex address

func FindChainCoordinatorAccount

func FindChainCoordinatorAccount(
	ctx sdk.Context,
	k keeper.Keeper,
	accs []simtypes.Account,
	chainID uint64,
) (simtypes.Account, error)

FindChainCoordinatorAccount find coordinator account by chain id

func FindCoordinatorProject added in v0.3.0

func FindCoordinatorProject(
	r *rand.Rand,
	ctx sdk.Context,
	ck types.ProjectKeeper,
	coordID uint64,
	chainID uint64,
) (uint64, bool)

FindCoordinatorProject finds a project associated with a coordinator and returns if it is associated with a chain

func FindRandomChain

func FindRandomChain(
	r *rand.Rand,
	ctx sdk.Context,
	k keeper.Keeper,
	launchTriggered,
	noMainnet bool,
) (chain types.Chain, found bool)

FindRandomChain find a random chain from store

func FindRandomRequest

func FindRandomRequest(
	r *rand.Rand,
	ctx sdk.Context,
	k keeper.Keeper,
) (request types.Request, found bool)

FindRandomRequest find a valid random request from store

func FindRandomValidator

func FindRandomValidator(
	r *rand.Rand,
	ctx sdk.Context,
	k keeper.Keeper,
	accs []simtypes.Account,
) (simAccount simtypes.Account, valAcc types.GenesisValidator, found bool)

FindRandomValidator find a valid validator from store

func IsLaunchTriggeredChain

func IsLaunchTriggeredChain(ctx sdk.Context, k keeper.Keeper, chainID uint64) bool

IsLaunchTriggeredChain check if chain is launch triggered

func RandomAccWithBalance added in v0.3.0

func RandomAccWithBalance(ctx sdk.Context, r *rand.Rand,
	bk types.BankKeeper,
	accs []simtypes.Account,
	desired sdk.Coins,
) (simtypes.Account, sdk.Coins, bool)

RandomAccWithBalance returns random account with the desired available balance

func SimulateMsgCreateChain

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

SimulateMsgCreateChain simulates a MsgCreateChain message

func SimulateMsgEditChain

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

SimulateMsgEditChain simulates a MsgEditChain message

func SimulateMsgRequestAddGenesisAccount

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

SimulateMsgRequestAddGenesisAccount simulates a MsgRequestAddGenesisAccount message

func SimulateMsgRequestAddValidator

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

SimulateMsgRequestAddValidator simulates a MsgRequestAddValidator message

func SimulateMsgRequestAddVestingAccount

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

SimulateMsgRequestAddVestingAccount simulates a MsgRequestAddVestingAccount message

func SimulateMsgRequestParamChange added in v0.3.0

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

SimulateMsgRequestParamChange simulates a MsgSendRequest message with ParamChange content

func SimulateMsgRequestRemoveAccount

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

SimulateMsgRequestRemoveAccount simulates a MsgRequestRemoveAccount message

func SimulateMsgRequestRemoveValidator

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

SimulateMsgRequestRemoveValidator simulates a MsgRequestRemoveValidator message

func SimulateMsgRevertLaunch

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

SimulateMsgRevertLaunch simulates a MsgRevertLaunch message

func SimulateMsgSettleRequest

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

SimulateMsgSettleRequest simulates a MsgSettleRequest message

func SimulateMsgTriggerLaunch

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

SimulateMsgTriggerLaunch simulates a MsgTriggerLaunch message

func SimulateMsgUpdateLaunchInformation

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

SimulateMsgUpdateLaunchInformation simulates a MsgUpdateLaunchInformation message

Types

This section is empty.

Jump to

Keyboard shortcuts

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