simulation

package
v0.0.0-...-abdbe5d Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAccount

func FindAccount(k *keeper.Keeper, 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

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

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,
	txGen client.TxConfig,
) simtypes.Operation

func SimulateMsgEditChain

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

func SimulateMsgRequestAddGenesisAccount

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

SimulateMsgRequestAddGenesisAccount simulates a MsgRequestAddGenesisAccount message

func SimulateMsgRequestAddValidator

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

SimulateMsgRequestAddValidator simulates a MsgRequestAddValidator message

func SimulateMsgRequestAddVestingAccount

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

SimulateMsgRequestAddVestingAccount simulates a MsgRequestAddVestingAccount message

func SimulateMsgRequestParamChange

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

SimulateMsgRequestParamChange simulates a MsgSendRequest message with ParamChange content

func SimulateMsgRequestRemoveAccount

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

SimulateMsgRequestRemoveAccount simulates a MsgRequestRemoveAccount message

func SimulateMsgRequestRemoveValidator

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

SimulateMsgRequestRemoveValidator simulates a MsgRequestRemoveValidator message

func SimulateMsgRevertLaunch

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

func SimulateMsgSettleRequest

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

func SimulateMsgTriggerLaunch

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

func SimulateMsgUpdateLaunchInformation

func SimulateMsgUpdateLaunchInformation(
	ak types.AccountKeeper,
	bk types.BankKeeper,
	k *keeper.Keeper,
	txGen client.TxConfig,
) 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