[#24] add custom Prelude and Lorentz modules to Indigo
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
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.