cosmos / cosmos-sdk

:chains: A Framework for Building High Value Public Blockchains :sparkles:
https://cosmos.network/
Apache License 2.0
6.06k stars 3.48k forks source link

EPIC: Simulator #14753

Open tac0turtle opened 1 year ago

tac0turtle commented 1 year ago

Summary

This EPIC is the start of a tracking issue for features we would like to have in a simulator. We should identify the pitfalls of the current design, if any, and aim to provide a better user experience

One feature that would be nice is extend the simulator from a dumb fuzzer to a more intelligent fuzzer where improper messages would be caught if they errored.

Work Breakdown

TBD

I'd like to invite people to comment what features they would like to see from the simulator

alexanderbez commented 1 year ago

I know dYdX wants https://github.com/cosmos/cosmos-sdk/issues/13843

robert-zaremba commented 1 year ago
  1. Error reporting. Today, tracing an error in simulations is a super unfriendly.
  2. Better high level functions to register and handle operations. Today, there is lot of boilerplate to deliver an operation.
gjermundgaraba commented 1 year ago

I have implemented simulations from 0 this week, and I have some feedback:

If anyone is interested, I can link the PR for this change to illustrate how much appears to be needed, just get started.

Since this is more about features, I just leave my feedback on docs here at the bottom so they are somewhere at least:

alexanderbez commented 1 year ago

This is great feedback @gjermundgaraba, thank you!

elias-orijtech commented 10 months ago

If anyone is interested, I can link the PR for this change to illustrate how much appears to be needed, just get started.

@gjermundgaraba I'm working on the simulator rewrite I'd like to see the PR you did to integrate simulation.

gjermundgaraba commented 10 months ago

If anyone is interested, I can link the PR for this change to illustrate how much appears to be needed, just get started.

@gjermundgaraba I'm working on the simulator rewrite I'd like to see the PR you did to integrate simulation.

Happy to! Here it is :) https://github.com/EmpowerPlastic/empowerchain/pull/469

fmorency commented 1 month ago

I started adding simulation support in our chain and agree with @gjermundgaraba.

My main ask is a hands-on guide/tutorial that explains how to add simulator support to your CosmosSDK app.

Happy to help!

tac0turtle commented 1 month ago

thank you, @alpe is doing a cleanup right now with some new changes, after this we will create a tutorial on how to write simulations. :)