Workspaces
Summary
Luzid workspaces are designed to shorten the feedback loop for smart contract developers. They allow cloning all programs of a project into the validator and repeat that step automatically anytime the program is recompiled.
Details
Registering a Workspace Automatically
This is the quickest, easiest and therefore recommended way to register a workspace. Simply
launch Luzid from the root of your project with the trailing .
as shown below:
luzid .
Luzid will then discover all programs and IDLs in that project, clone them into the validator and start watching them for changes.
Registering a Workspace via the UI
You can also manually register a workspace as follow:
-
Navigate to the Workspaces tab in the Luzid UI and click Add
-
Paste the path to the root of your project into the Workspace Directory field
-
Review the programs and IDLs that Luzid discovered and click Add
-
a. Either click Clone in order to clone all programs and IDLs of the workspace once
b. Or click Watch in order to clone all programs and IDLs of the workspace and watch them for changes afterwards