Skip to content

[#24] add custom Prelude and Lorentz modules to Indigo

Pinto Pasquale requested to merge pasqu4le/#24-indigo-lorentz-prelude into master

Description

All Indigo modules have to import Prelude and Lorentz with a list of hiding rules. This is bothersome and a source of boilerplate. Additionally, this is also necessary for contract that are written using Indigo.

This MR adds Indigo.Prelude and Indigo.Lorentz modules, containing the necessary hiding rules. These are also included in the Indigo module so that contracts written using Indigo are now able to import Indigo without further changes.

NOTE: both Lorentz's Macros and Instruction have not been re-exported because many of them have an Indigo homonym and by using a qualified import it is more clear that they are Lorentz's.

Also, const and var have been renamed as in !202 (merged) (see discussion).

Related issue(s)

Resolves #24 (closed)

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 the changelog if my changes are externally visible.

Stylistic guide (mandatory)

Merge request reports