Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add juvix dev anoma prove #3187

Merged
merged 4 commits into from
Nov 25, 2024
Merged

Add juvix dev anoma prove #3187

merged 4 commits into from
Nov 25, 2024

Conversation

paulcadman
Copy link
Collaborator

@paulcadman paulcadman commented Nov 22, 2024

Add juvix dev anoma prove

This is similar to juvix dev nockma run.

The difference is that the managed client is used and it outputs the result as a jammed file.

CLI docs

The prove command submits a Nockma program to the Anoma.Protobuf.NockService.Prove gRPC endpoint.

By default, the gRPC request is made to the client that is started by juvix dev anoma start.
Use the -c/--config option to use a different Anoma client.
The config file format is:

url: <ANOMA_CLIENT_URL>
port: <ANOMA_CLIENT_GRPC_PORT>

The gRPC response (a Nockma program) is saved to a file named <input>.proved.nockma, where <input> is the base name of the input file.
Use the -o/--output option to specify a custom output filename.

If the program generates traces, they will be written to standard output.

Usage: juvix dev anoma prove NOCKMA_FILE [--args ARGS_FILE]
                             [-c|--config CONFIG_FILE] [-o|--output OUTPUT_FILE]

  Submit a Nockma program to Anoma.Protobuf.NockService.Prove

Available options:
  NOCKMA_FILE              Path to a .nockma file
  --args ARGS_FILE         Path to a file containing args. The args file should
                           contain a list (i.e. to pass 2 and [1 4] as args, the
                           contents should be [2 [1 4] 0]).
  -c,--config CONFIG_FILE  A path to an Anoma client configuration file
  -o,--output OUTPUT_FILE  Path to output file
  -h,--help                Show this help text

@paulcadman paulcadman added this to the 0.6.9 milestone Nov 22, 2024
@paulcadman paulcadman self-assigned this Nov 22, 2024
@paulcadman paulcadman force-pushed the anoma-client-commands branch from 6b38abe to 8f7b6e6 Compare November 22, 2024 14:40
Base automatically changed from anoma-client-commands to main November 22, 2024 16:03
@paulcadman paulcadman force-pushed the anoma-client-prove branch 2 times, most recently from 8167c6c to 5c3449b Compare November 22, 2024 17:32
@paulcadman paulcadman marked this pull request as ready for review November 22, 2024 18:00
app/Commands/Dev/Nockma/Run/Anoma.hs Outdated Show resolved Hide resolved
app/Commands/Dev/Anoma/Prove.hs Outdated Show resolved Hide resolved
paulcadman and others added 4 commits November 25, 2024 09:31
This is similar to `juvix dev nockma run`. The difference is that the
mamaged client is used and it outputs the result as a jammed file.
Co-authored-by: Jan Mas Rovira <janmasrovira@gmail.com>
@paulcadman paulcadman merged commit e14eba1 into main Nov 25, 2024
4 checks passed
@paulcadman paulcadman deleted the anoma-client-prove branch November 25, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants