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

Run Nockma in an Anoma node #3128

Merged
merged 16 commits into from
Oct 29, 2024
Merged

Run Nockma in an Anoma node #3128

merged 16 commits into from
Oct 29, 2024

Conversation

janmasrovira
Copy link
Collaborator

@janmasrovira janmasrovira commented Oct 25, 2024

Changes

  1. Adds a new command juvix dev anoma node. This command runs the anoma node.
  2. Adds a flag --anoma-dir to juvix dev nockma run. When given, it must point to the anoma clone. Then, it will run the nockma code in the anoma node and report the result (with no traces).

Prerequisites

  1. An anoma clone at some specific commit.
    git clone [email protected]:anoma/anoma.git
    cd anoma
    git checkout 98e3660b91cd55f1d9424dcff9420425ae98f5f8
    
    # build anoma
    mix deps.get
    mix escript.install hex protobuf
    mix compile
    
    # build the client
    mix do --app anoma_client escript.build
    
  2. The mix command (elixir).
  3. The grpcurl command. To install a single binary in ~/.local/bin you can run:
    curl -sSL "https://github.com/fullstorydev/grpcurl/releases/download/v1.9.1/grpcurl_1.9.1_linux_x86_64.tar.gz" |  tar -xz -C ~/.local/bin --no-wildcards grpcurl
    

Testing

I've not included any test. It can be tested locally like this:

cd juvix/tests/Anoma/Compilation/positive
juvix compile anoma test001.juvix
echo 20 > args.debug.nockma
juvix dev nockma run --anoma-dir ~/projects/anoma test001.nockma --args args.debug.nockma

@janmasrovira janmasrovira self-assigned this Oct 25, 2024
@janmasrovira janmasrovira force-pushed the anoma-node-command branch 3 times, most recently from a4399b1 to 76d7750 Compare October 28, 2024 15:30
@janmasrovira janmasrovira marked this pull request as ready for review October 28, 2024 19:16
@janmasrovira janmasrovira changed the title Anoma integration Run Nockma in an Anoma node Oct 29, 2024
@paulcadman paulcadman added anoma enhancement New feature or request labels Oct 29, 2024
@paulcadman paulcadman added this to the 0.6.7 milestone Oct 29, 2024
src/Anoma/Effect/Base.hs Outdated Show resolved Hide resolved
src/Anoma/Effect/Base.hs Outdated Show resolved Hide resolved
@janmasrovira janmasrovira merged commit 021f183 into main Oct 29, 2024
4 checks passed
@janmasrovira janmasrovira deleted the anoma-node-command branch October 29, 2024 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anoma enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants