mukan-ignite/ignite/pkg/chaincmd/runner/simulate.go
Mukan Erkin Törük c32551b6f7
Some checks failed
Docs Deploy / build_and_deploy (push) Has been cancelled
Generate Docs / cli (push) Has been cancelled
Generate Config Doc / cli (push) Has been cancelled
Go formatting / go-formatting (push) Has been cancelled
Check links / markdown-link-check (push) Has been cancelled
Integration / pre-test (push) Has been cancelled
Integration / test on (push) Has been cancelled
Integration / status (push) Has been cancelled
Lint / Lint Go code (push) Has been cancelled
Test / test (ubuntu-latest) (push) Has been cancelled
refactor: replace all github.com upstream refs with git.cw.tr/mukan-network
2026-05-11 03:36:24 +03:00

39 lines
1.2 KiB
Go

package chaincmdrunner
import (
"context"
"os"
"github.com/cosmos/cosmos-sdk/types/simulation"
"git.cw.tr/mukan-network/mukan-ignite/ignite/pkg/chaincmd"
)
// Simulation run the chain simulation.
func (r Runner) Simulation(
ctx context.Context,
appPath, simName string,
enabled bool,
config simulation.Config,
genesisTime int64,
) error {
return r.run(ctx, runOptions{stdout: os.Stdout},
chaincmd.SimulationCommand(
appPath,
simName,
chaincmd.SimappWithGenesis(config.GenesisFile),
chaincmd.SimappWithParams(config.ParamsFile),
chaincmd.SimappWithExportParamsPath(config.ExportParamsPath),
chaincmd.SimappWithExportParamsHeight(config.ExportParamsHeight),
chaincmd.SimappWithExportStatePath(config.ExportStatePath),
chaincmd.SimappWithExportStatsPath(config.ExportStatsPath),
chaincmd.SimappWithSeed(config.Seed),
chaincmd.SimappWithInitialBlockHeight(config.InitialBlockHeight),
chaincmd.SimappWithNumBlocks(config.NumBlocks),
chaincmd.SimappWithBlockSize(config.BlockSize),
chaincmd.SimappWithLean(config.Lean),
chaincmd.SimappWithCommit(config.Commit),
chaincmd.SimappWithEnable(enabled),
chaincmd.SimappWithGenesisTime(genesisTime),
))
}