MCPcopy Create free account
hub / github.com/akash-network/node / simulateFromSeedFunc

Function simulateFromSeedFunc

app/sim_test.go:92–104  ·  view source on GitHub ↗
(t *testing.T, newApp *akash.AkashApp, config sdksim.Config)

Source from the content-addressed store, hash-verified

90}
91
92func simulateFromSeedFunc(t *testing.T, newApp *akash.AkashApp, config sdksim.Config) (bool, simulation.Params, error) {
93 return simulation.SimulateFromSeed(
94 t,
95 os.Stdout,
96 newApp.BaseApp,
97 simtestutil.AppStateFn(newApp.AppCodec(), newApp.SimulationManager(), akash.NewDefaultGenesisState(newApp.AppCodec())),
98 sdksim.RandomAccounts, // Replace it with own random account function if using keys other than secp256k1
99 simtestutil.BuildSimulationOperations(newApp, newApp.AppCodec(), config, newApp.TxConfig()),
100 newApp.ModuleAccountAddrs(),
101 config,
102 newApp.AppCodec(),
103 )
104}
105
106func TestFullAppSimulation(t *testing.T) {
107 config, db, dir, logger, skip, err := sim.SetupSimulation("leveldb-app-sim", "Simulation")

Callers 4

TestFullAppSimulationFunction · 0.85
TestAppImportExportFunction · 0.85
TestAppStateDeterminismFunction · 0.85

Calls 4

AppCodecMethod · 0.80
SimulationManagerMethod · 0.80
TxConfigMethod · 0.80
ModuleAccountAddrsMethod · 0.80

Tested by

no test coverage detected