WASM/PVM: add `store_create` for V1
Context
Fixes #5337 (closed)
Note that the function does not write any value, only allocates it. Zero-filled chunks are created on the fly when they're first accessed, hence the value can be created with size up to 2GB (the maximum addressable size in the durable storage, for 32bits).
Note that two commits are introduced to refactor a bit the testing of host functions that are tied to the PVM version (which explains why this MR depends on !8307 (merged)).
Manually testing the MR
dune exec src/lib_scoru_wasm/test/test_scoru_wasm.exe -- test "^Durable|^WASM PVM"
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