Reference documentation for the Credible Layer command-line interface
pcl
(Phylax Credible Layer) is a command-line interface for interacting with the Credible Layer. It allows developers to authenticate, test, and submit assertions to the Credible Layer dApp.
pcl
command expects the following directory structure:
src
directory on the same level as the assertions
directory, where you develop your protocol smart contracts and a test
directory where you develop your tests, so a typical project structure might look like this:
auth
config
test
pcl test
command is a fork of Forge’s test
command so all functionality is available. We’ve omitted most of the options for brevity.
store
pcl store
command.
ph.getAssertionAdopter()
in your assertion contract and aren’t adding any additional contract state variables to your assertion contract, you don’t need to provide constructor arguments when storing the assertion.submit
pcl auth login
to authenticatepcl auth login
to refresh your authentication