Manifest
Manifests are composite deployment artifacts for logics and are usually found as JSON, YAML or POLO files. LogicLab can manipulate Manifests to deploy as a logic or convert to other formats using the manifest expression which accepts either a relative file path (string) or raw manifest bytes (hex-encoded polo data).
- Syntax
>> manifest("[filepath]") or
>> manifest([hex-encoded polo])
- Example
>> manifest("./compute/manifests/erc20.json")
// prints the manifest in POLO encoded format
File Format
Converting manifests between encoding schemes can be done with the manifest utility. The given manifest at the file path is decoded and printed in the encoding of choice. Returns indented and formatted data for JSON and YAML, and hex string for POLO.
- Syntax
>> convert manifest(...) as [encoding]
- Example
>> convert manifest("./compute/manifests/erc20.json") as JSON
// prints JSON object
>> convert manifest("./compute/manifests/erc20.json") as YAML
// prints YAML object
>> convert manifest("./compute/manifests/erc20.json") as POLO
// prints hex encoded string of POLO bytes
Instruction Format
Converting instruction formats can be achieved using the instruction format conversion utility. By selecting the desired display mode, the utility presents the instruction in either ASM, BIN, or HEX format, offering flexibility in how you interpret and analyse instructions.
- Syntax
>> convert manifest(...) into [codeform]
- Example
>> convert manifest("./compute/manifests/erc20.json") into ASM
// prints insructions in ASM
>> convert manifest("./compute/manifests/erc20.json") into BIN
// prints insructions in BIN
>> convert manifest("./compute/manifests/erc20.json") into HEX
// prints insructions in HEX