Manage authentication with your Phylax platform account.
Copy
Ask AI
Authenticate `pcl` with your Phylax platform accountUsage: pcl auth [OPTIONS] <COMMAND>Commands: login Login to `pcl` using your wallet logout Logout from `pcl` status Check current authentication status help Print this message or the help of the given subcommand(s)Options: -u, --auth-url <AUTH_URL> Base URL for authentication service [env: PCL_AUTH_URL=] [default: https://app.phylax.systems] -h, --help Print help
Run testsUsage: pcl test [OPTIONS] [PATH]Options: -h, --help Print help (see more with '--help')Common options: -v, --verbosity... Verbosity level of the log messages. Pass multiple times to increase verbosity (e.g. -v, -vv, -vvv) -q, --quiet Do not print log messages --match-path <GLOB> Only run tests in source files matching the specified glob pattern --match-test <REGEX> Only run test functions matching the specified regex pattern --match-contract <REGEX> Only run tests in contracts matching the specified regex pattern
pcl test uses Forge underneath for test execution. Note that pcl uses an older version of Forge, so newer Forge features may not be available. The Forge version is periodically updated to include new features. See the Forge test documentation for all available options.
Submit the Assertion bytecode and source code to be stored by the Assertion DA of the Credible LayerUsage: pcl store [OPTIONS] <ASSERTION_CONTRACT> [CONSTRUCTOR_ARGS]...Arguments: <ASSERTION_CONTRACT> Name of the assertion contract to build and flatten [CONSTRUCTOR_ARGS]... Constructor arguments for the assertion contract. Format: <ARG0> <ARG1> <ARG2>Options: -u, --da-url <DA_URL> URL of the assertion-DA server [env: PCL_DA_URL=] [default: https://da.phylax.systems] --root <ROOT> Root directory of the project -h, --help Print help (see more with '--help')
Examples:
Copy
Ask AI
# Store assertion contract without constructor argumentspcl store MyAssertionContract# Store assertion with constructor argumentspcl store MyAssertion 0xADDRESS_OF_SMART_CONTRACT# Store assertion with multiple constructor argumentspcl store MyAssertion 0xADDRESS arg1 arg2
Constructor arguments must be provided in the same order as defined in your assertion contract. When submitting later, use the exact same arguments.
Arguments for submitting assertions to the Phylax platformUsage: pcl submit [OPTIONS] [ASSERTION_CONTRACT] [CONSTRUCTOR_ARGS]...Arguments: [ASSERTION_CONTRACT] Name of the assertion to submit (when submitting a single assertion) [CONSTRUCTOR_ARGS]... Constructor arguments for the assertionOptions: -u, --api-url <API Endpoint> Base URL for the Phylax platform API [env: PCL_API_URL=] [default: https://app.phylax.systems/api/v1] -p, --project-name <PROJECT> Optional project name to skip interactive selection -a, --assertion <ASSERTION> Assertion in format 'Name(arg1,arg2)'. Use multiple -a flags for multiple assertions. -h, --help Print help (see more with '--help')
Examples:
Copy
Ask AI
# Interactive mode (prompts you to select which stored assertions to submit and which project to submit them to)pcl submit# Submit a single assertion contract using positional argumentspcl submit MyAssertionContract arg0 arg1 arg2# Submit a single assertion contract with constructor arguments with -a flagpcl submit -a 'MyAssertionContract(0xADDRESS_OF_SMART_CONTRACT)' -p my-project# Submit assertion contract without constructor argumentspcl submit -a 'MyAssertionContract' -p my-project# Submit multiple assertion contracts using multiple -a flagspcl submit -a 'AssertionContract1(arg0,arg1)' -a 'AssertionContract2(arg0,arg1)' -p my-project
If you have stored several assertions that you want to submit to the same project, it’s fastest to use the interactive mode for selecting the project and assertions.
Manage your pcl configuration including authentication token, pending assertions for submission, and project settings.
Copy
Ask AI
Manage configurationUsage: pcl config <COMMAND>Commands: show Display the current configuration delete Delete the current configuration help Print this message or the help of the given subcommand(s)Options: -h, --help Print help