Logics are compiled logic objects that can be executed in their defined engine. They can be compiled directly from a Manifest file and inspected to view their state and callsites.
Compiling Logics
Compile a logic from a Manifest at the given file path. The compiled logic is indexed by the given name.
The manifest encoding is inferred from the file extension(.polo for POLO).
- Syntax
>> compile [name] from manifest("[filepath]")
- Example
>> compile ERC20 from manifest("./compute/manifests/erc20.json")
logic 'ERC20' [0800007140e42388a825992f5f07c7711718384b0ef228b36f46511503295e1dc38931] compiled with 100 FUEL
Listing Logics
List all logics compiled and available in the environment
- Syntax
>> logics
- Example
>> logics
1] ERC20 [080000204d61aca8d5562d71ead8162fc9eb6de57bae3ab2cbb5513e61b0eb39ffa11f]
2] Flipper [080000df4824f93ea1ce70f8540840817e4231c2af219bb99b048a5165c6e60f36a599]
Inspecting Logics
Inspect the contents of a compiled logic object
- Syntax
>> get logics.[name]
- Example
>> get logics.Flipper
==== [ Flipper ] [Address: 0xdf4824f93ea1ce70f8540840817e4231c2af219bb99b048a5165c6e60f36a599]
[Edition: 0] [Logic ID: 080000df4824f93ea1ce70f8540840817e4231c2af219bb99b048a5165c6e60f36a599]
[Engine: PISA] [Manifest: b0e336028515909d12bcfa69d99a048b7988a8b03e61a5d5471f02112d62575c]
[Persistent: true] [Ephemeral: false] [Interactive: false] [Asset Logic: false]
==== Callsites
[1] Flip! [invokable]
[2] Mode [invokable]
====
==== State
03170a2e7597b7b7e3d84c05391d139a62b157e78786d8c082f29dcf4c111314: 02
====
Deleting Logics
Delete a logic with the given name.
- Syntax
>> wipe logics.[name]
- Example
>> wipe logics.ERC20
logic 'ERC20' removed