Skip to content

WASM/Debugger: support installer configuration in the debugger

Valentin Chaboche requested to merge vch9@wasm-debugger-installer-config into master

Context

This merge request allows to parse and interpret the installer configuration. It initialize the storage by applying the instructions of the configuration. This is a joint effort with @picdc, the goal is to easily replicate the state of a running rollup in the debugger. Pierrick is writing a script that outputs the state of a running rollup-node to the installer configuration.

Manually testing the MR

The inputs or the kernel are not really relevant, just need to start the debugger

$ rlwrap dune exec src/bin_wasm_debugger/main_wasm_debugger.exe -- --kernel evm_kernel.wasm --inputs inputs.json  --installer-config src/kernel_evm/config/dev.yaml
> ls /evm/eth_accounts
> show key /evm/ticketer

And check that the path and values matches the same the configuration as in src/kernel_evm/config/dev.yaml!

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports