Documentation ¶
Index ¶
- func FindAccount(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 ¶
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 ¶
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.