{"modulePath":"github.com/DDWS-com/node","version":"v0.1.0-beta.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package sim\n\n## Variables\n\n```go\nvar (\n\tFlagGenesisFileValue        string\n\tFlagParamsFileValue         string\n\tFlagExportParamsPathValue   string\n\tFlagExportParamsHeightValue int\n\tFlagExportStatePathValue    string\n\tFlagExportStatsPathValue    string\n\tFlagSeedValue               int64\n\tFlagInitialBlockHeightValue int\n\tFlagNumBlocksValue          int\n\tFlagBlockSizeValue          int\n\tFlagLeanValue               bool\n\tFlagCommitValue             bool\n\tFlagOnOperationValue        bool // TODO: Remove in favor of binary search for invariant violation\n\tFlagAllInvariantsValue      bool\n\n\tFlagEnabledValue     bool\n\tFlagVerboseValue     bool\n\tFlagPeriodValue      uint\n\tFlagGenesisTimeValue int64\n)\n```\nList of available flags for the simulator\n\n## Functions\n\n```go\nfunc CheckExportSimulation(app runtime.AppI, config simtypes.Config, params simtypes.Params) error\n```\nCheckExportSimulation exports the app state and simulation parameters to JSON if the export paths are defined.\n\n```go\nfunc GetSimulatorFlags()\n```\nGetSimulatorFlags gets the values of all the available simulation flags\n\n```go\nfunc NewConfigFromFlags() simulation.Config\n```\nNewConfigFromFlags creates a simulation from the retrieved values of the flags.\n\n```go\nfunc PrintStats(db dbm.DB)\n```\nPrintStats prints the corresponding statistics from the app DB.\n\n```go\nfunc SetupSimulation(dirPrefix, dbName string) (simtypes.Config, dbm.DB, string, log.Logger, bool, error)\n```\nSetupSimulation creates the config, db (levelDB), temporary directory and logger for the simulation tests. If \\`FlagEnabledValue\\` is false, it skips the current test. Returns error on an invalid db instance or temp dir creation.\n\n```go\nfunc SimulationOperations(app *akash.AkashApp, cdc codec.JSONCodec, config simtypes.Config) []simtypes.WeightedOperation\n```\nSimulationOperations retrieves the simulation params from the provided file path and returns all the modules weighted operations\n\n","path":"github.com/DDWS-com/node/app/sim","name":"sim","synopsis":"","isRedistributable":true}
