Lib_scoru_wasm: More tree encoders
Context
A few more combinators needed for this and other MRs:
- Add more
tupcombinators. - Fix
tupcombinators to encode under distinct keys0, 1, 2, ...corresponding to the index of the elements in the tuple. That is to avoid name clashes when composing encoders with overlapping keys. - Introduce a
case_lwtcombinator. - Introduce an
optioncombinator. - Add tests for the new combinators.
Manually testing the MR
dune exec src/lib_scoru_wasm/test/test_scoru_wasm.exe -- test "$Encodings^"
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 Joel Bjornson