Versions in this module Expand all Collapse all v17 v17.0.0 Aug 17, 2023 Changes in this version + 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 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 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 + GetPoolManagerKeeper func() PoolManagerKeeper + GetStakingKeeper func() stakingkeeper.Keeper + ModuleManager func() module.Manager + type AppCreator = func(homepath string, legacyInvariantPeriod uint, ...) App + type AppModuleSimulation interface + Actions func() []Action + type AppModuleSimulationGenesis interface + SimulatorGenesisState func(*module.SimulationState, *SimCtx) + type AppModuleSimulationPropertyCheck interface + PropertyChecks func() []PropertyCheck + 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 + MintCoins func(ctx sdk.Context, moduleName string, amt sdk.Coins) error + SetDenomMetaData func(ctx sdk.Context, denomMetaData banktypes.Metadata) + SpendableCoins func(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins + type Frequency string + const Common + const Frequent + const Infrequent + const Rare + type ModuleGenesisGenerator interface + GenerateGenesisStates func(simState *module.SimulationState, sim *SimCtx) + type PoolManagerKeeper interface + CreatePool func(ctx sdk.Context, msg poolmanagertypes.CreatePoolMsg) (uint64, error) + type PropertyCheck interface + Check func(sim *SimCtx, ctx sdk.Context, key string, value interface{}) error + SubscriptionKeys func() []string + type PubSubManager interface + Publish func(sim *SimCtx, ctx sdk.Context, key string, value interface{}) error + Subscribe func(key string, subName string, callback SimCallbackFn) + type SimAccountConstraint = func(account simulation.Account) bool + type SimCallbackFn func(sim *SimCtx, ctx sdk.Context, value interface{}) error + 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 + func (sim SimCtx) PoolManagerKeeper() PoolManagerKeeper + func (sim SimCtx) StakingKeeper() stakingkeeper.Keeper v17.0.0-rc0 Aug 15, 2023 Other modules containing this package github.com/osmosis-labs/osmosis/v12 github.com/osmosis-labs/osmosis/v13 github.com/osmosis-labs/osmosis/v14 github.com/osmosis-labs/osmosis/v15 github.com/osmosis-labs/osmosis/v16 github.com/osmosis-labs/osmosis/v19 github.com/osmosis-labs/osmosis/v20 github.com/osmosis-labs/osmosis/v21 github.com/osmosis-labs/osmosis/v22 github.com/osmosis-labs/osmosis/v23 github.com/osmosis-labs/osmosis/v24 github.com/osmosis-labs/osmosis/v25 github.com/osmosis-labs/osmosis/v26 github.com/osmosis-labs/osmosis/v27 github.com/osmosis-labs/osmosis/v28