Repository navigation
Commit 67a2214
authored
Remove the unused Cosmos SDK simulation framework (#4429)
sei-chain still carries the Cosmos SDK simulation framework: `App.sm`
built a `module.SimulationManager` over twelve modules, every module
implemented `AppModuleSimulation`, and `sei-cosmos/x/simulation`,
`sei-cosmos/types/simulation` and the per-module `simulation` packages
(randomized genesis, weighted operations, store decoders, proposal
contents) came along with it. Nothing runs it anymore. There is no
simapp, no CI job or root Makefile target invokes a simulation, and the
`test-sim-*` targets in `sei-cosmos/Makefile` point at a `./simapp`
package that no longer exists. It is about 6.4k lines of dead code that
every module change has to keep compiling.
This deletes the framework and the hooks that only existed to feed it:
`AppModuleSimulation`, `SimulationManager`, `sdk.StoreDecoderRegistry`,
`authtypes.RandomGenesisAccountsFn`, the `app/params` and
`sei-wasmd/app/params` operation weights, the dead `test-sim-*` targets
and `/simulation` package filters in the `sei-cosmos` and `sei-wasmd`
Makefiles, and the now-uncalled `stakingkeeper.RandomValidator` test
helper. `auth.NewAppModule` drops its `randGenAccountsFn` argument and
`wasm.NewAppModule` drops the account and bank keepers it held only for
simulation. `app/test_helpers.go` no longer sets a random memo on
generated test txs. Wasm's `LimitSimulationGasDecorator` and the
`wasm.simulation_gas_limit` flag are tx-simulation gas behaviour, not
part of this framework, and are left alone.
No state, store keys, genesis, messages or begin/end-block logic change,
so this is not app-hash breaking. Validated with `go vet ./...`, `make
fmtcheck`, golangci-lint on the touched trees, and `go test` across app,
the affected sei-cosmos modules, wasm, mint, epoch and tokenfactory.1 parent 2198ea7 commit 67a2214
84 files changed
Lines changed: 31 additions & 6459 deletions
File tree
- app
- params
- sei-cosmos
- types
- module
- simulation
- x
- authz
- module
- simulation
- auth
- simulation
- types
- bank
- simulation
- distribution
- simulation
- evidence
- simulation
- gov
- simulation
- params
- simulation
- simulation
- slashing
- simulation
- staking
- keeper
- simulation
- sei-wasmd
- app
- params
- x/wasm
- simulation
- x
- epoch
- simulation
- mint
- simulation
- tokenfactory
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
392 | 391 | | |
393 | 392 | | |
394 | 393 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | 394 | | |
399 | 395 | | |
400 | 396 | | |
| |||
804 | 800 | | |
805 | 801 | | |
806 | 802 | | |
807 | | - | |
| 803 | + | |
808 | 804 | | |
809 | 805 | | |
810 | 806 | | |
| |||
814 | 810 | | |
815 | 811 | | |
816 | 812 | | |
817 | | - | |
| 813 | + | |
818 | 814 | | |
819 | 815 | | |
820 | 816 | | |
| |||
878 | 874 | | |
879 | 875 | | |
880 | 876 | | |
881 | | - | |
882 | | - | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | 877 | | |
900 | 878 | | |
901 | 879 | | |
| |||
2736 | 2714 | | |
2737 | 2715 | | |
2738 | 2716 | | |
2739 | | - | |
2740 | | - | |
2741 | | - | |
2742 | | - | |
2743 | | - | |
2744 | 2717 | | |
2745 | 2718 | | |
2746 | 2719 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
| |||
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | | - | |
42 | 40 | | |
43 | 41 | | |
44 | 42 | | |
| |||
897 | 895 | | |
898 | 896 | | |
899 | 897 | | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | 898 | | |
906 | 899 | | |
907 | 900 | | |
| |||
925 | 918 | | |
926 | 919 | | |
927 | 920 | | |
928 | | - | |
929 | 921 | | |
930 | 922 | | |
931 | 923 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | | - | |
12 | 9 | | |
13 | 10 | | |
14 | 11 | | |
| |||
207 | 204 | | |
208 | 205 | | |
209 | 206 | | |
210 | | - | |
211 | 207 | | |
212 | 208 | | |
213 | 209 | | |
| |||
227 | 223 | | |
228 | 224 | | |
229 | 225 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | 226 | | |
295 | 227 | | |
296 | 228 | | |
| |||
301 | 233 | | |
302 | 234 | | |
303 | 235 | | |
304 | | - | |
| 236 | + | |
305 | 237 | | |
306 | 238 | | |
307 | 239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
0 commit comments