Expand description
TruthLinked Axiom Cell SDK
Build Cells using the IR pipeline or CellBuilder directly.
For high-level cell authoring, use the axiom-cc compiler with .cell source files.
§Example (low-level)
use truthlinked_axiom_sdk::CellBuilder;
let bytecode = CellBuilder::new()
.require_owner()
.get_caller(1)
.load_imm64(2, 1000)
.sstore(1, 2)
.halt()
.build();Re-exports§
pub use builder::CellBuilder;
Modules§
- abi
- ABI helpers - selector hashing and calldata encoding/decoding.
- builder
- CellBuilder - fluent bytecode assembler for Axiom cells.
- codegen
- Codegen pass: IR + register allocation → Axiom bytecode.
- hashing
- Hashing helpers - storage key derivation matching the node’s conventions.
- ir
- Axiom IR - typed virtual instructions over virtual registers.
- op
- Opcode constants - re-exported from truthlinked-axiom for convenience.
- regalloc
- Linear-scan register allocator for Axiom IR.
Structs§
- Cell
Bytecode - A decoded cell ready for execution.