#mavryk #rollup #no-alloc #api-bindings #smart #define

no-std mavryk-smart-rollup-entrypoint

Setup kernel_entry entrypoint for Mavryk Smart Rollup kernels

1 unstable release

0.2.2 Jul 30, 2024

#745 in WebAssembly


Used in mavryk-smart-rollup

MIT license

140KB
2.5K SLoC

Entrypoint definition for Mavryk Smart Rollup kernels.

A kernel must expose an extern "C" fn kernel_run(); entrypoint, which is called on a loop by the runtime. The kernel yields to the runtime by returning out of kernel_run.

There is a limit on how many computation ticks a kernel may perform per entry. It is called a number of times per non-empty level. The kernel must take care not to perform arbitrarily long computations, to avoid breaching the computation limit.

Dependencies

~0–9MB
~91K SLoC