Skip to main content

Module value

Module value 

Source
Expand description

The decoded-value model: the exact shapes cyscale rendered SCALE data as, which the SDK’s reads/intents layer pattern-matches on. The shape corpus (sdk/python/tests/fixtures/shape_corpus) is the contract; this enum is its Rust carrier, materialized 1:1 into Python objects by the binding crate.

Enums§

Value
One decoded SCALE value in cyscale’s shape conventions.

Functions§

to_corpus_json
Render as the JSON the corpus recorder’s jsonable() produced: bytes as 0x-hex, tuples as lists, dict keys stringified. Only used by tests to compare against corpus fixtures.
u256_decimal
Decimal rendering of a little-endian u256.