dojo icon indicating copy to clipboard operation
dojo copied to clipboard

Implement state diff for starknet_simulateTransactions trace API

Open greged93 opened this issue 1 year ago • 0 comments
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

greged93 avatar Mar 14 '24 12:03 greged93