Documentation ¶
Index ¶
- Variables
- func AppStateFn() osmosim.AppStateFn
- func AppStateFromGenesisFileFn(r io.Reader, cdc codec.JSONCodec, genesisFile string) (tmtypes.GenesisDoc, []simtypes.Account)
- func AppStateRandomizedFn(simManager *osmosimtypes.Manager, r *rand.Rand, cdc codec.JSONCodec, ...) (json.RawMessage, []simtypes.Account)
- func OsmosisAppCreator(logger log.Logger, db db.DB) simtypes.AppCreator
Constants ¶
This section is empty.
Variables ¶
View Source
var OsmosisInitFns = simexec.InitFunctions{ RandomAccountFn: simexec.WrapRandAccFnForResampling(simulation.RandomAccounts, app.ModuleAccountAddrs()), AppInitialStateFn: AppStateFn(), }
Functions ¶
func AppStateFn ¶
func AppStateFn() osmosim.AppStateFn
AppStateFn returns the initial application state using a genesis or the simulation parameters. It panics if the user provides files for both of them. If a file is not given for the genesis or the sim params, it creates a randomized one.
func AppStateFromGenesisFileFn ¶
func AppStateFromGenesisFileFn(r io.Reader, cdc codec.JSONCodec, genesisFile string) (tmtypes.GenesisDoc, []simtypes.Account)
AppStateFromGenesisFileFn util function to generate the genesis AppState from a genesis.json file.
func AppStateRandomizedFn ¶
func AppStateRandomizedFn( simManager *osmosimtypes.Manager, r *rand.Rand, cdc codec.JSONCodec, accs []simtypes.Account, genesisTimestamp time.Time, appParams simtypes.AppParams, ) (json.RawMessage, []simtypes.Account)
AppStateRandomizedFn creates calls each module's GenesisState generator function and creates the simulation params.
func OsmosisAppCreator ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.