Logic
compile logicname Compiles the logic from coco.nut file from the directory you are running the cocolab, and loads the logic.
compile logicname from coco(path/tokenledger.coco) Compiles the coco file passed and reads the coco.nut file adjacent to it and loads it.
compile logicname from manifest(path/tokenledger.yaml) Loads the manifest directly.
The compiled logic is indexed by the given logicname.
logic 'ContextFlipper' [0x12791cc2bf160506126ba2d215b85d00a16556983a4cf24cec57bb75d9bdfd64] compiled with 1055 FUEL
get logicname Prints all the endpoints , logicId , Address, Manifest Hash and State of the logic manifest loaded.
>>> logics
[0] ContextFlipper [0x12791cc2bf160506126ba2d215b85d00a16556983a4cf24cec57bb75d9bdfd64]
>>> get ContextFlipper
===== [ ContextFlipper ] [Address: 0x12791cc2bf160506126ba2d215b85d00a16556983a4cf24cec57bb75d9bdfd64]
[Edition: 0] [Logic ID: 0x04000012791cc2bf160506126ba2d215b85d00a16556983a4cf24cec57bb75d9bdfd64]
[Engine: PISA] [Manifest: 520b9265e99cbdac544483a4bae3bc3c956cc4d67b1634c83a0a10a227daef86]
[Ready: true] [Persistent: false] [Ephemeral: true]
===== [Endpoints]
[0] invoke Flip() -> ()
[1] enlist Init() -> ()
[2] invoke Mode() -> (value bool)
[3] invoke Set(value bool) -> ()
=====
logics List all the logics loaded into the API server environment name.
0] estore2 [0x0c0000b10d6d02e32f81d87a47096ce63e116139ee2cd409b55fdff50011f32bd16711]
1] TF [0x080000c4f80f75157aff47d29f81373b559040245af0c4e1154bc7cbbca6118f4273d5]
2] Xoog [0x0800000fd4fb3c4f48a8a8aa539e0432c0aca7095bd15c5d9c80f3560cfef5ee189171]
3] TF2 [0x08000015240af79f707da6fe71137338fa6c7ffb4b1a329787d2b5133952741ac0b1b0]
4] types [0x000000b6fe8fece7e564c1903364e0d50ca7d382ba3acf1e26139524212750b18cd274]
wipe logics All logic wiped
wipe logicname Particular logic wiped