dojoengine / dojoengine/katana
Implement state diff for starknet_simulateTransactions trace API
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 9
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
Is your feature request related to a problem? Please describe.
The state diff computation is for now not executed in the starknet_simulateTransactions.
Describe the solution you'd like
The endpoint starknet_simulateTransactions should return the state diff generated along with the simulation result and fee.
The implementation can take inspiration using the below links related to pathfinder:
- https://github.com/eqlabs/pathfinder/blob/main/crates/executor/src/simulate.rs#L52
- https://github.com/eqlabs/pathfinder/blob/main/crates/executor/src/simulate.rs#L240
- https://github.com/eqlabs/pathfinder/blob/main/crates/executor/src/simulate.rs#L224
(ported from https://github.com/dojoengine/dojo/issues/1667)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the starknet_simulateTransactions endpoint and compare its simulation flow with Pathfinder's crates/executor/src/simulate.rs at lines 52, 224, and 240. Trace where the simulation result and fee are assembled, then verify the endpoint response includes the generated state diff alongside them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100