Skip to content

JamBrains/service-sdk

Repository files navigation

JAM Service SDK in C23

Building the Service

The easiest way to build the service is to use our provided Docker image (Apple silicon only). See the next section in case that you cannot use it.

The project uses just to run commands. Install it with:

cargo install just

# Tell the script whether you prefer docker or podman
just docker # or podman

You can now compile the example services in the services command:

just services build

You should see the following output:

Linked output/01-hello-world.jam
Linked output/02-pba-demo.jam
Linked output/03-storage-test.jam
...
Linked output/multi-field-test.jam
Linked output/refine-test.jam
Linked output/transfer-test.jam

This will result in a 02-pba-demo.jam file in the services/output/ folder. The service Blobs are currently not conformant to the Gray Paper since Polkatool is using a custom format. You can use the Playground to download GP conformant service blobs.

Non-Apple Silicon

You can build the Docker image also on Debian or other systems with podman build -t service-builder. (or docker build -t service-builder .) and then change the expected image name in services/Justfile to service-builder.

If you do not want to use Docker at all, you can also build the dependencies manually like described in here. You then still have to modify the Justfile to use it directly.

About

SDK for creating JAM Services in C.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •