Skip to content

TinyChain-Inc/tc-value

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tc-value

Core value representations shared across TinyChain crates. This crate will house the canonical Value enum (numbers, strings, tuples, etc.) used by the IR, state subsystem, and adapters.

Current status

  • Canonical Value enum implemented with variants:
    • None
    • Bool
    • Number
    • String
    • Link
    • Map
    • Tuple
  • destream/JSON round-trip support for all variants.
  • Bool-as-number semantics: JSON booleans decode as Value::Number(Number::Bool(...)).
  • Unit tests for literal and nested map/tuple round-trips.

Encoding notes

  • None, Bool, Number, and String encode as plain JSON literals.
  • Map encodes as a plain JSON object of nested Values.
  • Tuple encodes as a plain JSON array of nested Values.
  • Link encodes as a single-entry map keyed by the link path (v1-compatible form).

Typed value envelopes (/state/scalar/value/...) remain accepted where required for compatibility, but canonical emission prefers the plain JSON forms above.

About

A standard `Value` enum for the TinyChain cloud service runtime

Resources

License

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages