Overview
In Scrypto, code is organized into a hierarchy:
- Blueprints — Templates that define logic, state, and access rules (analogous to Rust structs with impl blocks, or Solidity contracts as classes)
- Packages — Deployed bundles of one or more blueprints (analogous to Rust crates). Each package has a unique address on the ledger
- Components — Runtime instances of blueprints, each with its own state, address, and access rules
This model enables code reuse (many components from one blueprint), clear separation of logic and state, and component royalties for blueprint authors.
