Adds a new controller action /contracts/simulate_with_state. In addition to the usual simulation params the user provides the current state the simulation should run in. This is an object with the following keys: ["eth_blocks", "ethscriptions", "contract_transactions", "contract_calls", "contract_artifacts", "contracts"].
Then, when the simulation is complete, the user is returned not only the transaction receipt but also the new world state. The user can then pass the new world state in for a subsequent call.
:warning: Attention Required: You are potentially modifying VM logic. Please ensure this will not affect tx processing and that other VM instances have had adequate time to pull the latest changes.
Adds a new controller action
/contracts/simulate_with_state
. In addition to the usual simulation params the user provides the current state the simulation should run in. This is an object with the following keys:["eth_blocks", "ethscriptions", "contract_transactions", "contract_calls", "contract_artifacts", "contracts"]
.Then, when the simulation is complete, the user is returned not only the transaction receipt but also the new world state. The user can then pass the new world state in for a subsequent call.