simulation

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 10 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, 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 FindCoordinatorCampaign

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

FindCoordinatorCampaign finds a campaign 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 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 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