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 polkatool jam-service support #176

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Commits on Sep 24, 2024

  1. jam-service-fib

    Rather than hand assemble
    https://gist.github.com/sourabhniyogi/5e44600216af117169384a51ab389c8d
    we would like to demonstrate how a JAM service written in Rust using
    #[polkavm_import(index = 0)]
    can be compiled into JAM-ready PVM and include "ecalli {0..22}" calls;  By "JAM-ready" we mean the "0/5/10/15" entry points for is_authorized/refine/accumulate/transfer.
    
    TODO: (1) Get toolchain instructions sufficient to get above Rust compiled into PVM with
     (a) ecalli 16/17/3 in place of import/export (refine) + write (accumulate)
     (b) entrypoints 0/5/10/15 going into is_authorized/refine/accumulate/on_transfer
    (2) get polkatool to output .pvm byte code with (1b) streamlined
    sourabhniyogi committed Sep 24, 2024
    Configuration menu
    Copy the full SHA
    4aa1c44 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. polkatool jam-service [compiledcode]

    Sample execution: (after cargo build of jam-service-fib)
    ./target/release/polkatool jam-service ~/polkavm/guest-programs/jam-service-fib/target/riscv32ema-unknown-none-elf/release/jam-service-fib
    sourabhniyogi committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    706c34a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    044f91a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    60c055f View commit details
    Browse the repository at this point in the history