dojo
dojo copied to clipboard
Implement state diff for starknet_simulateTransactions trace API
trafficstars
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