dojoengine / dojoengine/katana

Implement state diff for starknet_simulateTransactions trace API

Open
#39 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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:

(ported from https://github.com/dojoengine/dojo/issues/1667)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.