package tezos-protocol-014-PtKathma
This module provides a temporary toy rollup to be used as a demo.
This rollup is a stack machine equipped with addition.
It processes postfix arithmetic expressions written as sequence of (space separated) int
and +
using the following rules:
- a number
x
is interpreted as pushingx
on the stack ;
- a variable
a
is interpreted as storing the topmost element of the stack in the storage under the name "a" ;
- a variable
out
is interpreted as adding a message to the outbox containing a single transaction batch with the topmost element of the stack as payload, the zero contract as destination, and a default entrypoint ;
- a symbol
+
pops two integersx
andy
and pushesx + y
on the stack ;
If a message is not syntactically correct or does not evaluate correctly, the machine stops its evaluation and waits for the next message.
The machine has a boot sector which is a mere string used a prefix for each message.
The module implements the Sc_rollup_PVM_sem.S
Î interface to be used in the smart contract rollup infrastructure.
The machine exposes extra operations to be used in the rollup node.
module type S = sig ... end
module ProtocolImplementation :
S with type context = Tezos_protocol_environment_014_PtKathma.Context.t
module type P = sig ... end
module Make
(Context : P) :
S with type context = Context.Tree.t and type state = Context.tree
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>