Skip to content

Add dynamic view `VIEW_EXEC` instruction onto michelson

lykimquyen requested to merge marigold/tezos:quyen@dynamic_view into master

Context

This implementation add the new instruction VIEW_EXEC onto Michelson.

The test suits contain basic test cases:

  • runtime: invalid arity, contract without address, without lambda, wrong input, wrong address, contract contains FAILWITH.
  • originate and call contract
  • forbidden types in return types: big_map, sapling_state, ticket, operation

For more details:

Manually testing the MR

  • intergration tests:
cd src/proto_alpha/lib_protocol/test/integration/michelson && \
 dune exec ./main.exe -- test '^view exec$'
  • tezt tests:
dune exec tezt/tests/main.exe -- --file views_exec.ml

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 lykimquyen

Merge request reports