Skip to main content

Crate simple_chain

Crate simple_chain 

Source
Expand description

Example JAR chain.

The chain’s endpoint receives an args_len (currently ignored) and returns a u64 — the sum of a fixed array. Exercises the transpiled-Image runtime end-to-end: stack frame, array on the stack, iterative sum, function return through the #[subsoil::endpoint] trampoline’s halt wrapper.

Functions§

simple_chain_sum
Compute and return the sum of [1, 2, 3, 4, 5].