WASM: Refactor WASM PVM versioning
Context
- Next MR: !7726 (merged)
Prior to this patch, the versioning of the WASM PVM was hard-coded in
the `initial_tree` version.
There is now several compliant use-case to introduce a newer version
of the WASM PVM, with refactoring of the existing host functions,
introduction of new host functions, and parameterization of the
maximum call depth of the WASM interpreter.
This patch is a first step towards introducing a new version to
welcome these breaking changes.
Manually testing the MR
Normally, the test test_initial_state_hash_wasm_pvm in proto_{016_PtMumbai,alpha}/lib_protocol/test/unit/test_sc_rollup_wasm.ml is proof enough that this MR did not introduced any breaking change.
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.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Thomas Letan