Documentation ¶
Index ¶
- func FindAccount(k *keeper.Keeper, accs []simtypes.Account, address string) (simtypes.Account, error)
- func FindChainCoordinatorAccount(ctx sdk.Context, k *keeper.Keeper, accs []simtypes.Account, chainID uint64) (simtypes.Account, error)
- func FindCoordinatorProject(r *rand.Rand, ctx sdk.Context, ck types.ProjectKeeper, coordID uint64, ...) (uint64, bool)
- func FindRandomChain(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper, ...) (chain types.Chain, found bool)
- func FindRandomRequest(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper) (request types.Request, found bool)
- func FindRandomValidator(r *rand.Rand, ctx sdk.Context, k *keeper.Keeper, accs []simtypes.Account) (simAccount simtypes.Account, valAcc types.GenesisValidator, found bool)
- func IsLaunchTriggeredChain(ctx sdk.Context, k *keeper.Keeper, chainID uint64) bool
- func RandomAccWithBalance(ctx sdk.Context, r *rand.Rand, bk types.BankKeeper, accs []simtypes.Account, ...) (simtypes.Account, sdk.Coins, bool)
- func SimulateMsgCreateChain(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgEditChain(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestAddGenesisAccount(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestAddValidator(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestAddVestingAccount(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestParamChange(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestRemoveAccount(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRequestRemoveValidator(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgRevertLaunch(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgSettleRequest(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgTriggerLaunch(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
- func SimulateMsgUpdateLaunchInformation(ak types.AccountKeeper, bk types.BankKeeper, k *keeper.Keeper, ...) simtypes.Operation
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 ¶
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.