Summary
SPEL has no user-facing documentation. New developers have no entry point.
Create a docs/tutorial.md that walks through building a complete LEZ program from scratch using SPEL.
Outline
- Prerequisites — Rust, risc0 toolchain, sequencer running locally
- Scaffold — create a new program crate, add
lez-framework dependency
- Write your first instruction —
#[lez_program], #[instruction], account validation
- State accounts — define a PDA, derive it, store/read state
- Build and deploy —
make build, lez-cli deploy
- Call it —
lez-cli run or via generated FFI
- Register in SPELbook —
registry register --idl-path ...
- Next steps — ChainedCall, multisig governance, client-gen
Notes
Summary
SPEL has no user-facing documentation. New developers have no entry point.
Create a
docs/tutorial.mdthat walks through building a complete LEZ program from scratch using SPEL.Outline
lez-frameworkdependency#[lez_program],#[instruction], account validationmake build,lez-cli deploylez-cli runor via generated FFIregistry register --idl-path ...Notes