Introduction
LogicLab is a sandbox playground environment for compiling manifest into logics, simulating logic calls and participant interactions with logics on MOI. It has capabilities to handle basic argument parsing and is agnostic to engine runtime implementations but currently only supports PISA
.
Compiling on Logiclab
- Generate a compiled manifest using the Coco compiler
- Start the CLI session with
logiclab start
- Register a participant using
register [username]
- Designate a participant as the sender, as a sender is needed to deploy a module
- Compile the manifest with
compile [name] from manifest("[filepath]")
- Verify the presence of compiled logic with
logics
command - Deploy persistent state using
deploy [module].<deployer>()
- Invoke any module function with
invoke [module].<invokable>()
Converting Manifest Formats
Converting manifests between encoding schemes can be done with the manifest utility. The given manifest at the filepath is decoded and printed in the encoding of choice. Returns indented and formatted data for JSON and YAML, and hex string for POLO.
manifest("[filepath]") as [encoding]
Converting Instruction Formats
Easily transform the instructions from the manifest at the specified filepath into your preferred format: hex, asm, or bin. Embrace the simplicity and precision as you navigate through your code's instruction journey with readability and efficiency
convert manifest("[filepath]") into [instruction format]