Skip to main content

Module state_value

Module state_value 

Source
Expand description

Build a StateValue from the IR’s StateValue JSON tree.

The IR’s constructor.initial-state is a StateValue tree with kind: "null" | "cell" | "array" | "map" | "merkle-tree" leaves. This module translates that into the ledger’s moonproof_ledger::onchain_runtime::state::StateValue representation.

Today this handles null and array (the registry-shape skeleton — Array of Null leaves). cell with literal value, map, and merkle-tree are planned next slices.

Functions§

build_state_value
Build a ledger StateValue from the IR’s StateValue description.