Versions in this module Expand all Collapse all v11 v11.0.0 Aug 29, 2022 Changes in this version + const Common + const Frequent + const Infrequent + const Rare + func CurryMsgGenerator(k K, f func(K, *SimCtx, sdk.Context) (M, error)) func(*SimCtx, sdk.Context) (M, error) + func GenAndDeliverTx(app *baseapp.BaseApp, txGen client.TxConfig, msg legacytx.LegacyMsg, ...) (simulation.OperationMsg, []simulation.FutureOperation, error) + func GenAndDeliverTxWithRandFees(r *rand.Rand, app *baseapp.BaseApp, txGen client.TxConfig, ...) (simulation.OperationMsg, []simulation.FutureOperation, error) + func GetSelectActionFn(actions []ActionsWithMetadata) selectActionFn + func RandLTBound(sim *SimCtx, upperbound T) T + func RandLTEBound(sim *SimCtx, upperbound T) T + func RandSelect(sim *SimCtx, args ...T) T + func RemoveIndex(s sdk.Coins, index int) sdk.Coins + type AccountKeeper interface + GetAccount func(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI + type Action interface + Execute func(*SimCtx, sdk.Context) (OperationMsg simulation.OperationMsg, futureOps []simulation.FutureOperation, ...) + Frequency func() Frequency + Name func() string + WithFrequency func(w Frequency) Action + func ActionsFromWeightedOperations(ops legacysimexec.WeightedOperations) []Action + func NewKeeperlessMsgBasedAction(actionName string, msgGenerator func(sim *SimCtx, ctx sdk.Context) (M, error)) Action + func NewMsgBasedAction(actionName string, k K, f func(K, *SimCtx, sdk.Context) (M, error)) Action + type ActionsWithMetadata struct + ModuleName string + type App interface + AppCodec func() codec.Codec + GetAccountKeeper func() AccountKeeper + GetBankKeeper func() BankKeeper + GetBaseApp func() *baseapp.BaseApp + type AppModuleSimulation interface + Actions func() []Action + type AppModuleSimulationGenesis interface + SimulatorGenesisState func(*module.SimulationState, *SimCtx) + type BankKeeper interface + GetAllBalances func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + GetBalance func(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type Frequency string + type Manager struct + Modules map[string]AppModuleSimulation + func NewSimulationManager(manager module.Manager, overrideModules map[string]module.AppModuleSimulation) Manager + func (m Manager) Actions(seed int64, cdc codec.JSONCodec) []ActionsWithMetadata + func (m Manager) GenerateGenesisStates(simState *module.SimulationState, sim *SimCtx) + type SimAccountConstraint = func(account simulation.Account) bool + type SimCtx struct + Accounts []simulation.Account + Cdc codec.JSONCodec + func NewSimCtx(r *rand.Rand, app App, accounts []simulation.Account, chainID string) *SimCtx + func (sim *SimCtx) AddAccount(acc simulation.Account) + func (sim *SimCtx) FindAccount(address sdk.Address) (simulation.Account, bool) + func (sim *SimCtx) GetRand() *rand.Rand + func (sim *SimCtx) GetRandSubsetOfKDenoms(ctx sdk.Context, acc simulation.Account, k int) (sdk.Coins, bool) + func (sim *SimCtx) GetSeededRand(seed string) *rand.Rand + func (sim *SimCtx) RandCoinSubset(ctx sdk.Context, addr sdk.AccAddress, denoms []string) sdk.Coins + func (sim *SimCtx) RandExponentialCoin(ctx sdk.Context, addr sdk.AccAddress) sdk.Coin + func (sim *SimCtx) RandIntBetween(min, max int) int + func (sim *SimCtx) RandPositiveInt(max sdk.Int) sdk.Int + func (sim *SimCtx) RandStringOfLength(n int) string + func (sim *SimCtx) RandSubsetCoins(coins sdk.Coins) sdk.Coins + func (sim *SimCtx) RandTimestamp() time.Time + func (sim *SimCtx) RandomAmount(max sdk.Int) sdk.Int + func (sim *SimCtx) RandomDecAmount(max sdk.Dec) sdk.Dec + func (sim *SimCtx) RandomExistingAddress() sdk.AccAddress + func (sim *SimCtx) RandomFees(ctx sdk.Context, spendableCoins sdk.Coins) (sdk.Coins, error) + func (sim *SimCtx) RandomSimAccount() simulation.Account + func (sim *SimCtx) RandomSimAccountWithBalance(ctx sdk.Context) (simulation.Account, error) + func (sim *SimCtx) RandomSimAccountWithConstraint(f SimAccountConstraint) (simulation.Account, bool) + func (sim *SimCtx) RandomSimAccountWithKDenoms(ctx sdk.Context, k int) (simulation.Account, bool) + func (sim *SimCtx) RandomSimAccountWithMinCoins(ctx sdk.Context, coins sdk.Coins) (simulation.Account, error) + func (sim *SimCtx) SelAddrWithDenom(ctx sdk.Context, denom string) (simulation.Account, sdk.Coin, bool) + func (sim *SimCtx) SelAddrWithDenoms(ctx sdk.Context, denoms []string) (simulation.Account, sdk.Coins, bool) + func (sim *SimCtx) WrapRand(domainSeparator string) (wrappedSim *SimCtx, cleanup func()) + func (sim SimCtx) AccountKeeper() AccountKeeper + func (sim SimCtx) AppCodec() codec.Codec + func (sim SimCtx) BankKeeper() BankKeeper + func (sim SimCtx) BaseApp() *baseapp.BaseApp + func (sim SimCtx) ChainID() string + type SimulatorManagerI interface + Actions func() []ActionsWithMetadata