[go: up one dir, main page]

MIR: Add values serialization

Context

Depends on !10807 (merged) (only the last commits of mine are relevant)

For multisig contract we need PACK instruction that is capable of encoding value of type

  pair (pair chain_id address)
       nat
       (or (pair mutez (contract unit)) (or (option key_hash) (pair nat (list key))))

As a first step, in this MR I add helpers for encoding the untyped Value struct into bytes.

This MR leaves a todo, it will be covered in !10691 (merged).

Manually testing the MR

cargo test

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
Edited by Konstantin Ivanov

Merge request reports

Loading