Skip to content

[#147] add stored entrypoint machinery in Lorentz for lazy code processing

Pinto Pasquale requested to merge pasqu4le/#147-store-entrypoints into master

Description

Putting all the code in the code section of smart contracts can cause them to be expensive, because it requires to parse it fully (and do some processing) even tho often you only need to use one of its entrypoints.

This is supposed to make it fairly easy and convenient to develop and use entrypoints as lambda stored in a big_map. Since big_map are lazy, this allows to process only the code that you are going to use.

Related issue(s)

Part of #147 (moved)

Checklist for your Merge Request

Related changes (conditional)

  • Tests (see short guidelines)

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:
    • I updated changelog files of all affected packages released to Hackage if my changes are externally visible.

Stylistic guide (mandatory)

Edited by Pinto Pasquale

Merge request reports