Comments (2)
Can you elaborate a bit more about how the user is meant to submit commands while the simulation is running? Do you imagine there being multiple processes which communicate with each other somehow?
from blobs.
I envision that the user (e.g. rollup dev) would spin up the shim simulator, e.g. by running
shim simulate serve
then would run their rollup
./dn-chain
then the user would interact with the simulation by issuing the commands below.
# submit a blob
shim simulate submit blob.txt
# pause the chain
shim simulate pause
# revert the chain
shim simulate revert 1
Note those commands are fire-and-forget.
Under the hood, the command that is the part of simulate that controls simulation (maybe better described as simctl), must be able to connect to the simulation server, perform a command, and then disconnect (well, unless it's a listener of some kind). That implies that there is some kind of endpoint published by the simulation component that allows controlling the sim. I think normal HTTP/RPC should suffice for that.
I guess one take aways from the issue, is that it's probably not worth it to reuse the existing shim query
subcommand for the same purpose. I mean they do share some similarities, e.g. shim simulate submit
is very similar to shim query submit
, but I believe they are in the end super different.
E.g. shim query revert
doesn't make sense, because a normal RPC node simply doesn't provide such functionality. Also even shim simulate submit
could differ from shim query submit
by simulation specific flags.
from blobs.
Related Issues (20)
- CLI: `block query` should wait until the specified block is available HOT 1
- Move Fee Adjustment Logic into new pallet HOT 2
- fees: benchmark pallet-length-fee-adjudtment on_finalize
- fees: use GenesisConfig in pallet length-fee-adjustment HOT 2
- shim: cryptic error message for invalid blob HOT 1
- Update to Polkadot-SDK 1.6.0 HOT 1
- add blobs to kusama polkadotjs dashboard HOT 1
- Release 0.1
- shim: functions should start with "await" instead of "wait"
- ci: use actions/checkout@v4
- xtask: cli flags format HOT 1
- xtask: Builds struct
- xtask: wait for sovereign rollup
- xtask: sovereign binaries execution
- xtask: sugondat-node zombie process HOT 6
- xtask/test: be cwd-independent
- xtask: is clueless about zombienet crashing
- shim/rollkit: complete impl
- shim/rollkit: downgrade proto/upgrade rollkit
- shim: block submission is too slow
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blobs.